Skip to content

Commit 85ecc7a

Browse files
committed
annotate files with known used exports
1 parent 1519fda commit 85ecc7a

File tree

12 files changed

+85
-0
lines changed

12 files changed

+85
-0
lines changed

src/execution/execute.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Missing exports from `graphql`:
4+
* * ExecutionContext
5+
* * assertValidExecutionArguments @internal
6+
* * buildExecutionContext @internal
7+
* * buildResolveInfo @internal
8+
* * getFieldDef @internal
9+
* Should we still expose this file?
10+
*/
11+
112
import { devAssert } from '../jsutils/devAssert';
213
import { inspect } from '../jsutils/inspect';
314
import { invariant } from '../jsutils/invariant';

src/execution/values.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Missing exports from `graphql`: none
4+
* Should we still expose this file?
5+
*/
6+
17
import { inspect } from '../jsutils/inspect';
28
import { keyMap } from '../jsutils/keyMap';
39
import type { Maybe } from '../jsutils/Maybe';

src/jsutils/Maybe.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Should we still expose these?
4+
*/
15
/** Conveniently represents flow's "Maybe" type https://flow.org/en/docs/types/maybe/ */
26
export type Maybe<T> = null | undefined | T;

src/jsutils/ObjMap.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* All of these could be replaced by Record<string, T> or Readonly<Record<string, T>>
4+
* Should we still expose these?
5+
*/
6+
17
export interface ObjMap<T> {
28
[key: string]: T;
39
}

src/jsutils/PromiseOrValue.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Should we still expose these?
4+
*/
15
export type PromiseOrValue<T> = Promise<T> | T;

src/language/ast.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Missing exports from `graphql`:
4+
* * isNode @internal
5+
* * QueryDocumentKeys @internal
6+
* Should we still expose this file?
7+
*/
18
import type { Kind } from './kinds';
29
import type { Source } from './source';
310
import type { TokenKind } from './tokenKind';

src/language/lexer.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Missing exports from `graphql`:
4+
* * isPunctuatorTokenKind @internal
5+
* Should we still expose this file?
6+
*/
7+
18
import { syntaxError } from '../error/syntaxError';
29

310
import { Token } from './ast';

src/language/parser.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Missing exports from `graphql`:
4+
* * Parser @internal
5+
* Should we still expose this file?
6+
*/
7+
18
import type { Maybe } from '../jsutils/Maybe';
29

310
import type { GraphQLError } from '../error/GraphQLError';

src/type/schema.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Missing exports from `graphql`:
4+
* * GraphQLSchemaNormalizedConfig @internal
5+
* * GraphQLSchemaValidationOptions
6+
* Should we still expose this file?
7+
*/
18
import { devAssert } from '../jsutils/devAssert';
29
import { inspect } from '../jsutils/inspect';
310
import { instanceOf } from '../jsutils/instanceOf';

src/validation/ValidationContext.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* Quoted as "used by external libraries".
3+
* Missing exports from `graphql`:
4+
* * ASTValidationContext
5+
* * ASTValidationRule
6+
* * SDLValidationContext
7+
* * SDLValidationRule
8+
* Should we still expose this file?
9+
*/
10+
111
import type { Maybe } from '../jsutils/Maybe';
212
import type { ObjMap } from '../jsutils/ObjMap';
313

0 commit comments

Comments
 (0)