📜  获取组件的 typescript props - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:33.738000             🧑  作者: Mango

代码示例1
type ViewProps = React.ComponentProps
// or
type InputProps = React.ComponentProps<'input'>