Function record

  • Creates the shape that describes an object with string keys and values that conform the given shape.

    Type Parameters

    • ValuesShape extends AnyShape

      The shape of record values.

    Parameters

    Returns RecordShape<Shape, ValuesShape>

  • Creates the shape that describes an object with string keys and values that conform the given shape.

    Type Parameters

    • KeysShape extends Shape<string, PropertyKey>

      The shape of record keys.

    • ValuesShape extends AnyShape

      The shape of record values.

    Parameters

    Returns RecordShape<KeysShape, ValuesShape>