Skip to content

Options

Options = object

Defined in: .work/repos/tabscript/src/tabscript.ts:25

Configuration options for the TabScript transpiler.

optional debug?: boolean | ((…args) => void)

Defined in: .work/repos/tabscript/src/tabscript.ts:27

When true, logs each consumed token. If a function, calls that function instead of console.debug.


optional recover?: boolean

Defined in: .work/repos/tabscript/src/tabscript.ts:29

When true, attempts to recover from errors and continue transpilation instead of throwing.


optional js?: boolean

Defined in: .work/repos/tabscript/src/tabscript.ts:31

When true, outputs JavaScript instead of TypeScript by stripping type annotations.


optional transformImport?: (uri) => string

Defined in: .work/repos/tabscript/src/tabscript.ts:33

Function to transform import URIs during transpilation.

string

string


optional whitespace?: "preserve" | "pretty"

Defined in: .work/repos/tabscript/src/tabscript.ts:35

Output formatting mode: "preserve" maintains input alignment, "pretty" adds readable indentation.


optional loadPlugin?: (path) => PluginModule

Defined in: .work/repos/tabscript/src/tabscript.ts:37

Function to load a plugin module synchronously from a path. Required for plugin imports.

string

PluginModule