BUPKIS
    Preparing search index...

    Function diverseValueArbitrary

    • Creates an arbitrary that generates diverse values suitable for type assertion testing.

      The values cover multiple type categories to ensure good coverage of applicable/inapplicable assertion combinations.

      Returns Arbitrary<
          | string
          | number
          | bigint
          | boolean
          | symbol
          | RegExp
          | Record<string, unknown>
          | unknown[]
          | Set<unknown>
          | Error
          | ErrorConstructor
          | Map<any, any>
          | WeakMap<WeakKey, any>
          | Date
          | WeakSet<WeakKey>
          | DateConstructor
          | readonly []
          | (() => void)
          | (() => Promise<void>)
          | {}
          | typeof TestClass
          | null
          | undefined,
      >