Skip to content

Commit

Permalink
Don't use optional on crypto randomUuid
Browse files Browse the repository at this point in the history
The tests fail because of it for some reason:

./node_modules/next/types/index.d.ts:209:5
Type error: Overload signatures must all be optional or required.

  207 |       array: T
  208 |     ): T
> 209 |     randomUUID?(): string
      |     ^
  210 |   }
  211 | }
  212 |
  • Loading branch information
Schniz committed Mar 1, 2022
1 parent 96534ce commit a2a6c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/types/index.d.ts
Expand Up @@ -206,7 +206,7 @@ declare global {
>(
array: T
): T
randomUUID?(): string
randomUUID(): string
}
}

Expand Down

0 comments on commit a2a6c96

Please sign in to comment.