Private
variables
variables: Record<string, {
args: Record<string, boolean>;
handler: ((data, args, invalid) => string | Promise<string>);
}> = {}
Type declaration
args: Record<string, boolean>
handler: ((data, args, invalid) => string | Promise<string>)
- (data, args, invalid): string | Promise<string>
Parameters
- data: Data
- args: Record<string, undefined | string>
- invalid: ((reason) => "")
Returns string | Promise<string>
Parse Variables in a String
Since
1.8.3
Supports
nodejs, browser