Skip to main content

$record

Callable


  • Create a new RecordType instance with the given options.

    Example

    $record($integer)

    $record($boolean())

    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>