jshiki
    Preparing search index...

    Type Alias LogicalOperatorOptions

    LogicalOperatorOptions:
        | { allow: (keyof typeof operators.logical)[] }
        | { block: (keyof typeof operators.logical)[] }

    Defines which logical operators are allowed. Must provide either an allow list or a block list, but not both. Valid options are ||, &&, ??.

    Type Declaration

    • { allow: (keyof typeof operators.logical)[] }
      • allow: (keyof typeof operators.logical)[]

        Which logical operators to allow. Valid options are ||, &&, ??.

    • { block: (keyof typeof operators.logical)[] }
      • block: (keyof typeof operators.logical)[]

        Which logical operators to block. Valid options are ||, &&, ??.

    // allows only logical operators '||' and '&&'
    { allow: ['||', '&&'] }
    // allows any logical operator except '??'
    { block: ['??'] }