Skip to content

Commit

Permalink
hack types again
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 31, 2025
1 parent 9e2aa4e commit cc9e9a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/vanilla/derive.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const deriveStore = (
): ReturnType<typeof createStore> => {
const [storeArgs] = INTERNAL_getSecretStoreMethods(store)
const newStoreArgs = enhanceStoreArgs(...storeArgs)
const derivedStore = INTERNAL_buildStore(
...(newStoreArgs as unknown as StoreArgs),
)
const derivedStore = (INTERNAL_buildStore as any)(...(newStoreArgs as any[]))

Check failure on line 17 in tests/vanilla/derive.test.tsx

View workflow job for this annotation

GitHub Actions / test_matrix (3.9.7)

Argument of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, ...params: Parameters<Write<Args, Result>>) => Result' is not assignable to parameter of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, get: <Value_1>(atom: Atom<Value_1>) => Value_1, set: <Value_1, Args_1 extends unknown[], Result_1>(atom: WritableAtom<Value_1, Args_1, Result_1>, ...args: Args_1) => Result_1, ...args: Args) => Result'.

Check failure on line 17 in tests/vanilla/derive.test.tsx

View workflow job for this annotation

GitHub Actions / test_matrix (3.8.3)

Argument of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, ...params: Parameters<Write<Args, Result>>) => Result' is not assignable to parameter of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, get: <Value_1>(atom: Atom<Value_1>) => Value_1, set: <Value_1, Args_1 extends unknown[], Result_1>(atom: WritableAtom<Value_1, Args_1, Result_1>, ...args: Args_1) => Result_1, ...args: Args) => Result'.
return derivedStore
}

Expand Down
4 changes: 1 addition & 3 deletions tests/vanilla/store.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ const deriveStore = (
): ReturnType<typeof createStore> => {
const [storeArgs] = INTERNAL_getSecretStoreMethods(store)
const newStoreArgs = enhanceStoreArgs(...storeArgs)
const derivedStore = INTERNAL_buildStore(
...(newStoreArgs as unknown as StoreArgs),
)
const derivedStore = (INTERNAL_buildStore as any)(...(newStoreArgs as any[]))

Check failure on line 18 in tests/vanilla/store.test.tsx

View workflow job for this annotation

GitHub Actions / test_matrix (3.9.7)

Argument of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, ...params: Parameters<Write<Args, Result>>) => Result' is not assignable to parameter of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, get: <Value_1>(atom: Atom<Value_1>) => Value_1, set: <Value_1, Args_1 extends unknown[], Result_1>(atom: WritableAtom<Value_1, Args_1, Result_1>, ...args: Args_1) => Result_1, ...args: Args) => Result'.

Check failure on line 18 in tests/vanilla/store.test.tsx

View workflow job for this annotation

GitHub Actions / test_matrix (3.8.3)

Argument of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, ...params: Parameters<Write<Args, Result>>) => Result' is not assignable to parameter of type '<Value, Args extends unknown[], Result>(atom: WritableAtom<Value, Args, Result>, get: <Value_1>(atom: Atom<Value_1>) => Value_1, set: <Value_1, Args_1 extends unknown[], Result_1>(atom: WritableAtom<Value_1, Args_1, Result_1>, ...args: Args_1) => Result_1, ...args: Args) => Result'.
return derivedStore
}

Expand Down

0 comments on commit cc9e9a3

Please sign in to comment.