Skip to content

customTarget()

PromptScript API


customTarget(name): CustomTarget

Defined in: core/src/types/config.ts:983

Create a CustomTarget value from a plain string. Use this when registering custom formatters to get proper typing.

Parameters

name

string

The custom target name

Returns

CustomTarget

The name typed as CustomTarget