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 32b2644
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/-private/change.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* import { IChange } from '../types'; */
import isObject from '../utils/is-object';

export const VALUE = Symbol('__value__');
Expand All @@ -20,3 +19,7 @@ export function getChangeValue(maybeChange: Change | unknown): any {
return maybeChange[VALUE];
}
}

export interface Changes {
[s: string]: any;
}
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 32b2644

Please sign in to comment.