@cartridge-engine/keyboard-engine
    Preparing search index...

    Type Alias ValueGuard

    ValueGuard: (value: unknown) => boolean

    Runtime type guard for a value flowing through a composition chain.

    Returns true when the value matches the expected shape for a given flag.

    Type Declaration

      • (value: unknown): boolean
      • Parameters

        • value: unknown

        Returns boolean

    const schema: ValueSchema = {
    times: (v): v is number => typeof v === 'number',
    action: (v): v is number => typeof v === 'number',
    };