todotxt4js
    Preparing search index...

    Interface KeyHandler

    Interface for custom key handlers. Allows validation and transformation of key-value pairs.

    interface KeyHandler {
        key: string;
        transform?: (value: string) => any;
        validate?: (value: string) => boolean;
    }
    Index

    Properties

    key: string

    The key name to handle (without the colon)

    transform?: (value: string) => any

    Optional function to transform values for this key

    validate?: (value: string) => boolean

    Optional function to validate values for this key