( fc: typeof FastCheck, item: FastCheck.Arbitrary<any>, constraint: FastCheck.ArrayConstraints | undefined, comparator?: ((a: any, b: any) => boolean) | undefined )
| 68 | } |
| 69 | |
| 70 | function arrayWithConstraints( |
| 71 | fc: typeof FastCheck, |
| 72 | item: FastCheck.Arbitrary<any>, |
| 73 | constraint: FastCheck.ArrayConstraints | undefined, |
| 74 | comparator?: ((a: any, b: any) => boolean) | undefined |
| 75 | ) { |
| 76 | return comparator |
| 77 | ? fc.uniqueArray(item, { ...constraint, comparator }) |
| 78 | : fc.array(item, constraint) |
| 79 | } |
| 80 | |
| 81 | function array(fc: typeof FastCheck, ctx: Context, item: FastCheck.Arbitrary<any>, terminal = false) { |
| 82 | const constraint = ctx.constraint |