Skip to content

Commit

Permalink
chore: type modifier on imports
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed May 28, 2022
1 parent 6dd774f commit d5568d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/-private/change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ export function getChangeValue(maybeChange: Change | unknown): any {
return maybeChange[VALUE];
}
}

// https://github.com/microsoft/TypeScript/pull/26797
/* export interface IChange { */
/* [s: symbol]: any; */
/* } */
export interface Changes {
[s: string]: any; //IChange;
}
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Change, { getChangeValue, isChange } from './-private/change';
import Change, { getChangeValue, isChange, type Changes } from './-private/change';
import { getKeyValues, getKeyErrorValues } from './utils/get-key-values';
import lookupValidator from './utils/validator-lookup';
import { notifierForEvent } from './-private/evented';
Expand All @@ -23,7 +23,6 @@ import getDeep, { getSubObject } from './utils/get-deep';
import { objectToArray, arrayToObject } from './utils/array-object';

import type {
Changes,
Config,
Content,
Errors,
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */

"importsNotUsedAsValues": "remove",
},
"include": [
"src/**/*"
Expand Down

0 comments on commit d5568d3

Please sign in to comment.