摘要:
import React, { useState } from "react"; type Base = { id: string } | string; type GenericSelectProps<TValue> = { formatLabel: (value: TValue) => stri 阅读全文
posted @ 2022-11-21 15:48
Zhentiw
阅读(24)
评论(0)
推荐(0)
摘要:
Implement a type DeepPick, that extends Utility types Pick. A type takes two arguments. For example: type obj = { name: 'hoge', age: 20, friend: { nam 阅读全文
posted @ 2022-11-21 15:32
Zhentiw
阅读(51)
评论(0)
推荐(0)
摘要:
const obj = { name: "John", age: 33, cars: [ { make: "Ford", age: 10 }, { make: "Tesla", age: 2 }, ], } as const; export type PathKeys<T> = T extends 阅读全文
posted @ 2022-11-21 00:24
Zhentiw
阅读(29)
评论(0)
推荐(0)

浙公网安备 33010602011771号