Skip to content

DataContractExposeOptions

Defined in: namespaces.ts:1055

Options for exposing a data contract.

optional description?: string

Defined in: namespaces.ts:1057

Human-readable description of the contract.


optional schema?: Record<string, unknown>

Defined in: namespaces.ts:1059

JSON Schema for the returned data.


provider: (args) => Promise<unknown>

Defined in: namespaces.ts:1061

Provider function called when the contract is queried.

unknown

Promise<unknown>