Runtime type guard for a value flowing through a composition chain.
Returns true when the value matches the expected shape for a given flag.
true
const schema: ValueSchema = { times: (v): v is number => typeof v === 'number', action: (v): v is number => typeof v === 'number',}; Copy
const schema: ValueSchema = { times: (v): v is number => typeof v === 'number', action: (v): v is number => typeof v === 'number',};
Runtime type guard for a value flowing through a composition chain.
Returns
truewhen the value matches the expected shape for a given flag.