摘要:
// Before declare function createFSM<TState extends string>(config: { // Without NoInfer, TS doesn't know which // TState is the source of truth initi 阅读全文
posted @ 2024-01-22 03:03
Zhentiw
阅读(38)
评论(0)
推荐(0)
摘要:
// Before declare function useState<T>(status: T[]): T; const loadingStatus = useState(["loading", "idle"]) // string type // after declare function u 阅读全文
posted @ 2024-01-22 02:57
Zhentiw
阅读(26)
评论(0)
推荐(0)
摘要:
const routes = { user: ["get-user", "get-all-users"], comment: ["get-comment", "get-all-comments"] } as const type Routes = typeof routes type Possibl 阅读全文
posted @ 2024-01-22 02:52
Zhentiw
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号