Skip to content

Commit 3bfd9ca

Browse files
fix: compatibility with typescript 5.5 and higher (#49)
* fix: compatibility with typescript 5.5 and higher * add changeset
1 parent 6bbba37 commit 3bfd9ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/bright-baboons-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@0no-co/graphql.web': patch
3+
---
4+
5+
Fix compatibility with typescript 5.5 and higher

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type Or<T, U> = 0 extends 1 & T ? U : T;
1+
export type Or<T, U> = void extends T ? U : T;
22

33
export type Maybe<T> = T | undefined | null;
44

0 commit comments

Comments
 (0)