API Reference | fast-check | Property based testing framework
    Preparing search index...

    Function record

    • For records following the recordModel schema

      Type Parameters

      • T
      • K extends string | number | symbol = keyof T

      Parameters

      Returns Arbitrary<
          {
              [K in string
              | number
              | symbol]: (Partial<T> & Pick<T, K & keyof T>)[K]
          },
      >

      record({ x: someArbitraryInt, y: someArbitraryInt }, {requiredKeys: []}): Arbitrary<{x?:number,y?:number}>
      // merge two integer arbitraries to produce a {x, y}, {x}, {y} or {} record

      Since 0.0.12