-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: optimize repository dependencies/packages (#585)
* fix: @codeimage/prisma-models build script * feat: update ts version * chore: update solidjs and fix types * chore: update solid-use
- Loading branch information
1 parent
d68f3d0
commit 0dfd704
Showing
32 changed files
with
698 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
import type { | ||
NotWrappable, | ||
Part, | ||
PickMutable, | ||
StoreSetter, | ||
} from 'solid-js/store/types/store'; | ||
|
||
type W<T> = Exclude<T, NotWrappable>; | ||
type KeyOf<T> = number extends keyof T | ||
? 0 extends 1 & T | ||
? keyof T | ||
: [T] extends [never] | ||
? never | ||
: [T] extends [readonly unknown[]] | ||
? number | ||
: keyof T | ||
: keyof T; | ||
type MutableKeyOf<T> = KeyOf<T> & keyof PickMutable<T>; | ||
|
||
export interface SetStoreFunction<T> { | ||
< | ||
K1 extends KeyOf<W<T>>, | ||
K2 extends KeyOf<W<W<T>[K1]>>, | ||
K3 extends KeyOf<W<W<W<T>[K1]>[K2]>>, | ||
K4 extends KeyOf<W<W<W<W<T>[K1]>[K2]>[K3]>>, | ||
K5 extends KeyOf<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>>, | ||
K6 extends KeyOf<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>>, | ||
K7 extends MutableKeyOf<W<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>[K6]>>, | ||
>( | ||
k1: Part<W<T>, K1>, | ||
k2: Part<W<W<T>[K1]>, K2>, | ||
k3: Part<W<W<W<T>[K1]>[K2]>, K3>, | ||
k4: Part<W<W<W<W<T>[K1]>[K2]>[K3]>, K4>, | ||
k5: Part<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>, K5>, | ||
k6: Part<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>, K6>, | ||
k7: Part<W<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>[K6]>, K7>, | ||
setter: StoreSetter< | ||
W<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>[K6]>[K7], | ||
[K7, K6, K5, K4, K3, K2, K1] | ||
>, | ||
): void; | ||
|
||
< | ||
K1 extends KeyOf<W<T>>, | ||
K2 extends KeyOf<W<W<T>[K1]>>, | ||
K3 extends KeyOf<W<W<W<T>[K1]>[K2]>>, | ||
K4 extends KeyOf<W<W<W<W<T>[K1]>[K2]>[K3]>>, | ||
K5 extends KeyOf<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>>, | ||
K6 extends MutableKeyOf<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>>, | ||
>( | ||
k1: Part<W<T>, K1>, | ||
k2: Part<W<W<T>[K1]>, K2>, | ||
k3: Part<W<W<W<T>[K1]>[K2]>, K3>, | ||
k4: Part<W<W<W<W<T>[K1]>[K2]>[K3]>, K4>, | ||
k5: Part<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>, K5>, | ||
k6: Part<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>, K6>, | ||
setter: StoreSetter< | ||
W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>[K6], | ||
[K6, K5, K4, K3, K2, K1] | ||
>, | ||
): void; | ||
|
||
< | ||
K1 extends KeyOf<W<T>>, | ||
K2 extends KeyOf<W<W<T>[K1]>>, | ||
K3 extends KeyOf<W<W<W<T>[K1]>[K2]>>, | ||
K4 extends KeyOf<W<W<W<W<T>[K1]>[K2]>[K3]>>, | ||
K5 extends MutableKeyOf<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>>, | ||
>( | ||
k1: Part<W<T>, K1>, | ||
k2: Part<W<W<T>[K1]>, K2>, | ||
k3: Part<W<W<W<T>[K1]>[K2]>, K3>, | ||
k4: Part<W<W<W<W<T>[K1]>[K2]>[K3]>, K4>, | ||
k5: Part<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>, K5>, | ||
setter: StoreSetter< | ||
W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5], | ||
[K5, K4, K3, K2, K1] | ||
>, | ||
): void; | ||
|
||
< | ||
K1 extends KeyOf<W<T>>, | ||
K2 extends KeyOf<W<W<T>[K1]>>, | ||
K3 extends KeyOf<W<W<W<T>[K1]>[K2]>>, | ||
K4 extends MutableKeyOf<W<W<W<W<T>[K1]>[K2]>[K3]>>, | ||
>( | ||
k1: Part<W<T>, K1>, | ||
k2: Part<W<W<T>[K1]>, K2>, | ||
k3: Part<W<W<W<T>[K1]>[K2]>, K3>, | ||
k4: Part<W<W<W<W<T>[K1]>[K2]>[K3]>, K4>, | ||
setter: StoreSetter<W<W<W<W<T>[K1]>[K2]>[K3]>[K4], [K4, K3, K2, K1]>, | ||
): void; | ||
|
||
< | ||
K1 extends KeyOf<W<T>>, | ||
K2 extends KeyOf<W<W<T>[K1]>>, | ||
K3 extends MutableKeyOf<W<W<W<T>[K1]>[K2]>>, | ||
>( | ||
k1: Part<W<T>, K1>, | ||
k2: Part<W<W<T>[K1]>, K2>, | ||
k3: Part<W<W<W<T>[K1]>[K2]>, K3>, | ||
setter: StoreSetter<W<W<W<T>[K1]>[K2]>[K3], [K3, K2, K1]>, | ||
): void; | ||
|
||
<K1 extends KeyOf<W<T>>, K2 extends MutableKeyOf<W<W<T>[K1]>>>( | ||
k1: Part<W<T>, K1>, | ||
k2: Part<W<W<T>[K1]>, K2>, | ||
setter: StoreSetter<W<W<T>[K1]>[K2], [K2, K1]>, | ||
): void; | ||
|
||
<K1 extends MutableKeyOf<W<T>>>( | ||
k1: Part<W<T>, K1>, | ||
setter: StoreSetter<W<T>[K1], [K1]>, | ||
): void; | ||
|
||
(setter: StoreSetter<T, []>): void; | ||
|
||
// < | ||
// K1 extends KeyOf<W<T>>, | ||
// K2 extends KeyOf<W<W<T>[K1]>>, | ||
// K3 extends KeyOf<W<W<W<T>[K1]>[K2]>>, | ||
// K4 extends KeyOf<W<W<W<W<T>[K1]>[K2]>[K3]>>, | ||
// K5 extends KeyOf<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>>, | ||
// K6 extends KeyOf<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>>, | ||
// K7 extends KeyOf<W<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>[K6]>>, | ||
// >( | ||
// k1: Part<W<T>, K1>, | ||
// k2: Part<W<W<T>[K1]>, K2>, | ||
// k3: Part<W<W<W<T>[K1]>[K2]>, K3>, | ||
// k4: Part<W<W<W<W<T>[K1]>[K2]>[K3]>, K4>, | ||
// k5: Part<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>, K5>, | ||
// k6: Part<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>, K6>, | ||
// k7: Part<W<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>[K6]>, K7>, | ||
// // ...rest: Rest<W<W<W<W<W<W<W<T>[K1]>[K2]>[K3]>[K4]>[K5]>[K6]>[K7], [K7, K6, K5, K4, K3, K2, K1]> | ||
// ): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule kit
deleted from
34dae9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.