Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SyntaxOptions

Defines what syntax is allowed.

example
const syntaxOptions = {
  memberAccess: true,
  calls: false,
  taggedTemplates: false,
  templates: true,
  objects: true,
  arrays: false,
  regexes: false,
}

Hierarchy

  • SyntaxOptions

Properties

Optional arrays

arrays: boolean

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

Optional calls

calls: boolean

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

Optional memberAccess

memberAccess: boolean

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

Optional objects

objects: boolean

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

Optional regexes

regexes: boolean

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

Optional taggedTemplates

taggedTemplates: boolean

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

Optional templates

templates: boolean

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

Generated using TypeDoc