📜  样式化组件类型参数泛型 - TypeScript 代码示例

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

代码示例1
// antd -> Table is a generic component
import styled from 'styled-components'
import { Table as AntdTable } from 'antd'

export const Table = styled(AntdTable)`
...
` as typeof AntdTable