Skip to main content

Interface: XQueryCastable

Defined in: lang-xquery/src/language/language.ts:96

XQuery-specific extension of Castable that can suppress automatic atomization.

Extends

Properties

convert

convert: (val) => any

Defined in: core/dist/extension.d.ts:50

Converts a value to the target type.

Parameters

ParameterType
valany

Returns

any

Inherited from

Castable.convert


name

name: string

Defined in: core/dist/extension.d.ts:44

Unique name of this castable keyword.

Inherited from

Castable.name


pure?

optional pure?: boolean

Defined in: core/dist/extension.d.ts:48

No side effects, same output for same input (careful: () => ({}) is not pure).

Inherited from

Castable.pure


schema?

optional schema?: string | symbol

Defined in: core/dist/extension.d.ts:46

Schema (name prefix) of the castable.

Inherited from

Castable.schema


skipAtomization?

optional skipAtomization?: boolean

Defined in: lang-xquery/src/language/language.ts:98

When true, values are not atomized before the cast is attempted.