Skip to content

isPromptTarget()

PromptScript API


isPromptTarget(name): boolean

Defined in: core/src/target-catalog.ts:913

Whether a target name is a built-in prompt target (bundle, prompt-text). Prompt targets are opt-in: no “all formatters” default includes them.

Parameters

name

string

Any target name, built-in or custom

Returns

boolean

True for a built-in target of the prompt family