Skip to main content
Version: v2

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