Skip to content

Commit d5568d3

Browse files
committed
chore: type modifier on imports
1 parent 6dd774f commit d5568d3

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/-private/change.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ export function getChangeValue(maybeChange: Change | unknown): any {
2020
return maybeChange[VALUE];
2121
}
2222
}
23+
24+
// https://github.com/microsoft/TypeScript/pull/26797
25+
/* export interface IChange { */
26+
/* [s: symbol]: any; */
27+
/* } */
28+
export interface Changes {
29+
[s: string]: any; //IChange;
30+
}

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Change, { getChangeValue, isChange } from './-private/change';
1+
import Change, { getChangeValue, isChange, type Changes } from './-private/change';
22
import { getKeyValues, getKeyErrorValues } from './utils/get-key-values';
33
import lookupValidator from './utils/validator-lookup';
44
import { notifierForEvent } from './-private/evented';
@@ -23,7 +23,6 @@ import getDeep, { getSubObject } from './utils/get-deep';
2323
import { objectToArray, arrayToObject } from './utils/array-object';
2424

2525
import type {
26-
Changes,
2726
Config,
2827
Content,
2928
Errors,

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
/* Experimental Options */
6262
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
6363
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
64+
65+
"importsNotUsedAsValues": "remove",
6466
},
6567
"include": [
6668
"src/**/*"

0 commit comments

Comments
 (0)