@eleven-am/faker
    Preparing search index...

    Function record

    • Creates a schema that generates an object (record) with specified keys and values.

      Type Parameters

      Parameters

      • keySchema: K

        Schema for generating keys (must produce string or number).

      • valueSchema: V

        Schema for generating values.

      • options: RecordOptions = {}

        Configuration for the record generation.

      Returns Schema<Record<Infer<K>, Infer<V>>>