Skip to content

Commit 3547bba

Browse files
committed
enhance(utils): relax DirectableObject types
1 parent 51a4925 commit 3547bba

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/itchy-yaks-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-tools/utils': patch
3+
---
4+
5+
Relax `extensions` type

packages/utils/src/getDirectiveExtensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type DirectableASTNode = ASTNode & {
1010
export type DirectableObject = {
1111
astNode?: DirectableASTNode | null | undefined;
1212
extensionASTNodes?: readonly DirectableASTNode[] | null | undefined;
13-
extensions?: { directives?: Record<string, any> | undefined } | null | undefined;
13+
extensions?: any;
1414
};
1515

1616
export function getDirectiveExtensions<

0 commit comments

Comments
 (0)