TLIndexedRecords

See source code

Index type that maps custom record type names to their record types.

Similar to TLIndexedShapes and TLIndexedBindings, this type creates a mapping from type name keys to their corresponding record types, filtering out any disabled types (those set to null or undefined in TLGlobalRecordPropsMap).

type TLIndexedRecords = {
  [K in keyof TLGlobalRecordPropsMap as TLGlobalRecordPropsMap[K] extends
    | null
    | undefined
    ? never
    : K]: TLGlobalRecordPropsMap[K]
}
Prev
TLIndexedBindings
Next
TLIndexedShapes