forked from graphql/graphql-js
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TS: sync TS typings with Flow typings
extracted from graphql#2609
- Loading branch information
1 parent
e4ecbe0
commit 39a6d16
Showing
5 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { ASTVisitor } from '../../language/visitor'; | ||
import { ValidationContext } from '../ValidationContext'; | ||
import { ValidationContext, SDLValidationContext } from '../ValidationContext'; | ||
|
||
/** | ||
* Known type names | ||
* | ||
* A GraphQL document is only valid if referenced types (specifically | ||
* variable definitions and fragment conditions) are defined by the type schema. | ||
*/ | ||
export function KnownTypeNamesRule(context: ValidationContext): ASTVisitor; | ||
export function KnownTypeNamesRule( | ||
context: ValidationContext | SDLValidationContext, | ||
): ASTVisitor; |