Record.Factory

A Record.Factory is created by the Record() function. Record instances are created by passing it some of the accepted values for that Recordtype:

Note that Record Factories return Record<TProps> & Readonly<TProps>, this allows use of both the Record instance API, and direct property access on the resulting instances:

Construction

Method signature

Record.Factory<TProps extends object>(
  values?: Partial<TProps>
): RecordOf<TProps>

Members

The name provided to Record(values, name) can be accessed with displayName.

Method signature

displayName: string
;