Skip to content

Commit

Permalink
Fix {} in every and some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrHoroshih committed Nov 18, 2023
1 parent b4bac9d commit 53072cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test-typings/every.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import { every } from '../dist/every';
const $b = createStore(1);
const $invalid1 = createStore('');
const $invalid2 = createStore(true);
const $invalid3 = createStore({});
const $invalid3 = createStore<Record<any, any>>({});

expectType<Store<boolean>>(every({ predicate: $predicate, stores: [$a, $b] }));

Expand All @@ -78,7 +78,7 @@ import { every } from '../dist/every';
const $b = createStore(1);
const $invalid1 = createStore('');
const $invalid2 = createStore(true);
const $invalid3 = createStore({});
const $invalid3 = createStore<Record<any, any>>({});

expectType<Store<boolean>>(every([$a, $b], 0));
// @ts-expect-error
Expand Down
4 changes: 2 additions & 2 deletions test-typings/some.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import { some } from '../dist/some';
const $b = createStore(1);
const $invalid1 = createStore('');
const $invalid2 = createStore(true);
const $invalid3 = createStore({});
const $invalid3 = createStore<Record<any, any>>({});

expectType<Store<boolean>>(some({ predicate: $predicate, stores: [$a, $b] }));

Expand All @@ -76,7 +76,7 @@ import { some } from '../dist/some';
const $b = createStore(1);
const $invalid1 = createStore('');
const $invalid2 = createStore(true);
const $invalid3 = createStore({});
const $invalid3 = createStore<Record<any, any>>({});

expectType<Store<boolean>>(some([$a, $b], 0));
// @ts-expect-error
Expand Down

0 comments on commit 53072cf

Please sign in to comment.