Skip to content

Documentation / @warp-drive/core / types/record / TypeFromInstance

Type Alias: TypeFromInstance<T>

ts
type TypeFromInstance<T> = T extends TypedRecordInstance ? T[typeof Type] : never;

Defined in: core/src/types/record.ts:38

A type utility that extracts the Type if available, otherwise it returns never.

Type Parameters

T

T

Released under the MIT License.