Skip to content

Commit 9b80bee

Browse files
Remove deprecated *Enum types (#3579)
1 parent d203f6f commit 9b80bee

File tree

5 files changed

+0
-27
lines changed

5 files changed

+0
-27
lines changed

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,6 @@ export {
240240
export type {
241241
ParseOptions,
242242
SourceLocation,
243-
TokenKindEnum,
244-
KindEnum,
245-
DirectiveLocationEnum,
246243
// Visitor utilities
247244
ASTVisitor,
248245
ASTVisitFn,

src/language/directiveLocation.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,3 @@ export enum DirectiveLocation {
2424
INPUT_OBJECT = 'INPUT_OBJECT',
2525
INPUT_FIELD_DEFINITION = 'INPUT_FIELD_DEFINITION',
2626
}
27-
28-
/**
29-
* The enum type representing the directive location values.
30-
*
31-
* @deprecated Please use `DirectiveLocation`. Will be remove in v17.
32-
*/
33-
export type DirectiveLocationEnum = typeof DirectiveLocation;

src/language/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ export type { SourceLocation } from './location';
66
export { printLocation, printSourceLocation } from './printLocation';
77

88
export { Kind } from './kinds';
9-
export type { KindEnum } from './kinds';
109

1110
export { TokenKind } from './tokenKind';
12-
export type { TokenKindEnum } from './tokenKind';
1311

1412
export { Lexer } from './lexer';
1513

@@ -106,4 +104,3 @@ export {
106104
} from './predicates';
107105

108106
export { DirectiveLocation } from './directiveLocation';
109-
export type { DirectiveLocationEnum } from './directiveLocation';

src/language/kinds.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,3 @@ export enum Kind {
6767
ENUM_TYPE_EXTENSION = 'EnumTypeExtension',
6868
INPUT_OBJECT_TYPE_EXTENSION = 'InputObjectTypeExtension',
6969
}
70-
71-
/**
72-
* The enum type representing the possible kind values of AST nodes.
73-
*
74-
* @deprecated Please use `Kind`. Will be remove in v17.
75-
*/
76-
export type KindEnum = typeof Kind;

src/language/tokenKind.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,3 @@ export enum TokenKind {
2626
BLOCK_STRING = 'BlockString',
2727
COMMENT = 'Comment',
2828
}
29-
30-
/**
31-
* The enum type representing the token kinds values.
32-
*
33-
* @deprecated Please use `TokenKind`. Will be remove in v17.
34-
*/
35-
export type TokenKindEnum = typeof TokenKind;

0 commit comments

Comments
 (0)