Skip to content

NativeTypesOptions

NativeTypesOptions configures native TypeScript object support.

readonly optional registry?: Registry

registry is the protobuf and CEL type registry to extend.

When omitted, a fresh registry is created.


readonly types: readonly NativeObjectDescriptor[]

types contains explicit TypeScript object descriptions.

Go reflection discovers this metadata in cel-go. TypeScript erases it, so the equivalent field descriptions are supplied directly.


readonly optional version?: number

version sets the native types extension version.

Version zero and the current version expose the same API, matching cel-go.