This commit is contained in:
2026-03-15 10:14:58 +09:00
parent 98c9ffbc89
commit 054f8b471d
9 changed files with 352 additions and 98 deletions

View File

@@ -29,4 +29,5 @@ export class State<T> {
}
}
type SubscribeCallback<T> = (value: T) => any
type SubscribeCallback<T> = (value: T) => any
export type ValuesOfStateArray<T extends State<any>[]> = { [K in keyof T]: T[K] extends State<infer V> ? V : never };