@witchcraft/spellcraft
    Preparing search index...

    Type Alias DefaultStringifierOptions

    type DefaultStringifierOptions = {
        chain?: (key: readonly string[]) => string;
        chord?: (key: readonly string[]) => string;
        command?: (command?: Command) => string;
        condition?: (condition?: Condition) => string;
        key?: (id: string, key?: Key) => string;
        list?: (items: string[], type: "keys" | "commands" | "shortcuts") => string;
        propertyValue?: (propertyValue?: any) => string;
        shortcut?: (shortcut: Shortcut) => string;
    }
    Index

    Properties

    chain?: (key: readonly string[]) => string
    chord?: (key: readonly string[]) => string
    command?: (command?: Command) => string
    condition?: (condition?: Condition) => string
    key?: (id: string, key?: Key) => string

    The key parameter will be undefined for unknown keys. Also careful with toggle keys, you will need to check which toggle it is by checking against the toggle ids.

    list?: (items: string[], type: "keys" | "commands" | "shortcuts") => string
    propertyValue?: (propertyValue?: any) => string
    shortcut?: (shortcut: Shortcut) => string