$record
Callable
Type parameters
Parameters
items: ConstExpr<Node>
The items on this record.
options: SchemaOptions<object, Record<string, IndexType[infer]>> = {}
Additional options to pass to the record.
Returns RecordType<IndexType>
The items on this record.
Additional options to pass to the record.
Create a new
RecordType
instance with the given options.Example