Skip to main content

KeySchemaValidator TypeAlias

A validator function that can optionally be provided to do runtime validation of the custom key listed in a LatestMap.

Signature

export type KeySchemaValidator<Keys extends string> = (unvalidatedKey: string) => unvalidatedKey is Keys;

Type Parameters

ParameterConstraintDescription
Keysstring