Skip to content

Commit

Permalink
chore: npm run format:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem committed Jan 19, 2024
1 parent 15f1402 commit a1bcde3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -945,9 +945,10 @@ export type StoresInput = StoreInput<any> | readonly [StoreInput<any>, ...StoreI
* If the type given as a parameter is one of an array of {@link StoreInput}, the returned type
* is the type of an array containing the value of each store in the same order.
*/
export type StoresInputValues<S> = S extends StoreInput<infer T>
? T
: { [K in keyof S]: S[K] extends StoreInput<infer T> ? T : never };
export type StoresInputValues<S> =
S extends StoreInput<infer T>
? T
: { [K in keyof S]: S[K] extends StoreInput<infer T> ? T : never };

export type SyncDeriveFn<T, S> = (values: StoresInputValues<S>) => T;
export interface SyncDeriveOptions<T, S> extends Omit<StoreOptions<T>, 'onUse'> {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"moduleResolution": "Node",
"strict": true,
"noImplicitOverride": true,
"useDefineForClassFields": false
}
"useDefineForClassFields": false,
},
}

0 comments on commit a1bcde3

Please sign in to comment.