Skip to main content

Accessor TypeAlias

Utility type that conditionally represents an accessor type based on the base accessor type.

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature

export type Accessor<T, BaseAccessor extends ValueAccessor<T>> = BaseAccessor extends ProxiedValueAccessor<T> ? () => DeepReadonly<JsonDeserialized<T>> | undefined : BaseAccessor extends RawValueAccessor<T> ? DeepReadonly<JsonDeserialized<T>> : never;

Type Parameters

Parameter Constraint Description
T
BaseAccessor ValueAccessor<T>