Skip to main content

Interface: Extension<LangNames>

Defined in: packages/core/src/extension.ts:62

A bundle of operators, functions, aggregates, and castables that can be registered with the engine.

Type Parameters

Type ParameterDefault type
LangNames extends stringstring

Properties

aggregates?

optional aggregates?: AggregateFn[]

Defined in: packages/core/src/extension.ts:70

Aggregate functions contributed by this extension.


castables?

optional castables?: Castable[]

Defined in: packages/core/src/extension.ts:72

Castable type keywords contributed by this extension.


functions?

optional functions?: Fn[]

Defined in: packages/core/src/extension.ts:68

Functions contributed by this extension.


operators?

optional operators?: Operator[]

Defined in: packages/core/src/extension.ts:66

Operators contributed by this extension.


schema?

optional schema?: string

Defined in: packages/core/src/extension.ts:64

Schema (name prefix) of the extension, applied to all of its functions, aggregates, and castables.


scope?

optional scope?: LangNames[]

Defined in: packages/core/src/extension.ts:74

If specified, will limit the extension to only specific languages.