Skip to content

Commit fb47c80

Browse files
committed
add weird workaround for weird TS bug
1 parent 995ff73 commit fb47c80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/graphql-authentication/src/queries.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { getUserId, Context } from './utils';
2+
// Without this manual User interface import, TypeScript will create an incorrect queries.d.ts declaration file, WTF?
3+
import { User } from './Adapter';
24

35
export const queries = {
46
currentUser(parent: any, args: any, ctx: Context, info: any) {

0 commit comments

Comments
 (0)