forked from graphql/graphql-js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TS error caused by importing internal files directly
Fixes graphql#3338 Caused by graphql#3319
- Loading branch information
1 parent
a745361
commit c9180df
Showing
4 changed files
with
21 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { NameNode } from 'graphql/language'; | ||
|
||
// Parser class is internal API so so any changes to it are never considered breaking changes. | ||
// We just want to test that we are able to import it. | ||
import { Parser } from 'graphql/language/parser'; | ||
|
||
const parser = new Parser('foo'); | ||
const ast: NameNode = parser.parseName(); |
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