Skip to content

DataContractExposeOptions

Defined in: namespaces.ts:1054

Options for exposing a data contract.

optional description?: string

Defined in: namespaces.ts:1056

Human-readable description of the contract.


optional schema?: Record<string, unknown>

Defined in: namespaces.ts:1058

JSON Schema for the returned data.


provider: (args) => Promise<unknown>

Defined in: namespaces.ts:1060

Provider function called when the contract is queried.

unknown

Promise<unknown>