Skip to content

refactor: treeshakable kind enum #4270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 22, 2024
Merged
Prev Previous commit
Next Next commit
fix lints
  • Loading branch information
jasonkuhrt committed Nov 9, 2024
commit 323d12ef877f86b493549b7134ba0b91e5b2c0e1
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@
} from './type/index.js';

// Parse and operate on GraphQL language source files.
export {

Check failure on line 209 in src/index.ts

View workflow job for this annotation

GitHub Actions / ci / Lint source files

All exports in the declaration are only used as types. Use `export type`
// eslint-disable-line @typescript-eslint/consistent-type-exports
Kind,
} from './language/kinds.js';

export {
Token,
Source,
Expand All @@ -230,7 +235,6 @@
visitInParallel,
getEnterLeaveForKind,
BREAK,
Kind,
DirectiveLocation,
// Predicates
isDefinitionNode,
Expand Down
2 changes: 1 addition & 1 deletion src/language/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type { SourceLocation } from './location.js';

export { printLocation, printSourceLocation } from './printLocation.js';

export { Kind } from './kinds.js';
export { Kind } from './kinds.js'; // eslint-disable-line @typescript-eslint/consistent-type-exports

export { TokenKind } from './tokenKind.js';

Expand Down
Loading