Skip to content

isPromptId()

PromptScript API


isPromptId(value): boolean

Defined in: core/src/types/approval.ts:113

Is this the prompt id of an approval record: ASCII only, at least two segments split by a slash, no segment ending in a dot. It has no limit on the number of segments; the CLI adds its own depth limit for the record path.

Parameters

value

string

Returns

boolean