Skip to content

getRuleById()

PromptScript API


getRuleById(id): ValidationRule | undefined

Defined in: validator/src/rules/index.ts:235

Get a rule by its ID.

Parameters

id

string

Returns

ValidationRule | undefined