jshiki
    Preparing search index...

    Interface SyntaxOptions

    Defines what syntax is allowed.

    const syntaxOptions = {
    memberAccess: true,
    calls: false,
    taggedTemplates: false,
    templates: true,
    objects: true,
    arrays: false,
    regexes: false,
    }
    interface SyntaxOptions {
        arrays?: boolean;
        calls?: boolean;
        memberAccess?: boolean;
        objects?: boolean;
        regexes?: boolean;
        taggedTemplates?: boolean;
        templates?: boolean;
    }
    Index

    Properties

    arrays?: boolean

    Whether or not array literals are allowed. A value of true allows array literals, false blocks them. Defaults to true.

    calls?: boolean

    Whether or not function calls are allowed. A value of true allows function calls, false blocks them. Defaults to true.

    memberAccess?: boolean

    Whether or not member access is allowed. A value of true allows member access, false blocks it. Defaults to true.

    objects?: boolean

    Whether or not object literals are allowed. A value of true allows object literals, false blocks them. Defaults to true.

    regexes?: boolean

    Whether or not regular expressions are allowed. A value of true allows regular expressions, false blocks them. Defaults to true.

    taggedTemplates?: boolean

    Whether or not tagged template literals are allowed. A value of true allows tagged template literals, false blocks them. Defaults to true.

    templates?: boolean

    Whether or not template literals are allowed. A value of true allows template literals, false blocks them. Defaults to true.