Skip to content

Commit

Permalink
Fix Options type parameter constraint for TS 4.7 (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn authored Apr 21, 2022
1 parent 2e57e7a commit e3fae8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Conf, {Schema as ConfSchema, Options as ConfOptions} from 'conf';
declare namespace ElectronStore {
type Schema<T> = ConfSchema<T>;

type Options<T> = Except<ConfOptions<T>, 'configName' | 'projectName' | 'projectVersion' | 'projectSuffix'> & {
type Options<T extends Record<string, any>> = Except<ConfOptions<T>, 'configName' | 'projectName' | 'projectVersion' | 'projectSuffix'> & {
/**
Name of the storage file (without extension).
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"save"
],
"dependencies": {
"conf": "^10.0.3",
"type-fest": "^1.0.2"
"conf": "^10.1.2",
"type-fest": "^2.12.2"
},
"devDependencies": {
"ava": "^2.4.0",
Expand Down

0 comments on commit e3fae8e

Please sign in to comment.