Skip to content

Commit

Permalink
Fix export ChangeType (#2773)
Browse files Browse the repository at this point in the history
* Fix export `ChangeType`

* changeset

* fix?
  • Loading branch information
TuvalSimha authored May 30, 2024
1 parent 0e40ebd commit 6e3ccc9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-spiders-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-inspector/core': minor
---

Fix export `ChangeType` from core package.
2 changes: 1 addition & 1 deletion packages/core/src/diff/changes/change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const ChangeType = {
DirectiveUsageInputFieldDefinitionRemoved: 'DIRECTIVE_USAGE_INPUT_FIELD_DEFINITION_REMOVED',
} as const;

export type ChangeType = (typeof ChangeType)[keyof typeof ChangeType];
export type TypeOfChangeType = (typeof ChangeType)[keyof typeof ChangeType];

// Directive

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/diff/rules/ignore-description-changes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeType } from '../changes/change.js';
import { ChangeType, TypeOfChangeType } from '../changes/change.js';
import { Rule } from './types.js';

const descriptionChangeTypes: ChangeType[] = [
const descriptionChangeTypes: TypeOfChangeType[] = [
ChangeType.FieldArgumentDescriptionChanged,
ChangeType.DirectiveDescriptionChanged,
ChangeType.DirectiveArgumentDescriptionChanged,
Expand Down
8 changes: 7 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ export {
Rule,
UsageHandler,
} from './diff/index.js';
export { Change, ChangeType, Criticality, CriticalityLevel } from './diff/changes/change.js';
export {
Change,
ChangeType,
TypeOfChangeType,
Criticality,
CriticalityLevel,
} from './diff/changes/change.js';
export { similar, SimilarMap } from './similar/index.js';
export { getTypePrefix } from './utils/graphql.js';
export { BestMatch, Rating, Target } from './utils/string.js';
Expand Down

0 comments on commit 6e3ccc9

Please sign in to comment.