Skip to content

createDataSpecProxy

createDataSpecProxy<T>(builder?): DataSpecProxy<T>

Defined in: extract/data-spec-builder.ts:131

Create a Proxy-based spec builder that provides direct property access for known data shapes.

Wraps a SpecBuilder and converts property access to .get(key) calls, while forwarding known SpecBuilder methods directly.

T = unknown

SpecBuilder

Optional SpecBuilder to wrap (defaults to root)

DataSpecProxy<T>

A DataSpecProxy with typed property access