mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
4e116962f2
TreeSelectProps extends AbstractSelectProps. However, the method signatures are different causing compilation issue with typescript: ``` Failed to compile. /home/kasra/Desktop/Repos/frontend/node_modules/antd/lib/tree-select/interface.d.ts Type error: Interface 'TreeSelectProps' incorrectly extends interface 'AbstractSelectProps'. Types of property 'getPopupContainer' are incompatible. Type '((triggerNode: Element) => HTMLElement) | undefined' is not assignable to type '((triggerNode?: Element | undefined) => HTMLElement) | undefined'. Type '(triggerNode: Element) => HTMLElement' is not assignable to type '(triggerNode?: Element | undefined) => HTMLElement'. Types of parameters 'triggerNode' and 'triggerNode' are incompatible. Type 'Element | undefined' is not assignable to type 'Element'. Type 'undefined' is not assignable to type 'Element'. TS2430 24 | rootPId?: string; 25 | } > 26 | export interface TreeSelectProps extends AbstractSelectProps { | ^ 27 | autoFocus?: boolean; 28 | defaultValue?: string | number | Array<any>; ``` |
||
---|---|---|
.. | ||
__tests__ | ||
demo | ||
style | ||
index.en-US.md | ||
index.tsx | ||
index.zh-CN.md | ||
interface.tsx |