amis-rpc-design/node_modules/rc-menu/es/utils/warnUtil.d.ts

9 lines
283 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
/// <reference types="react" />
/**
* `onClick` event return `info.item` which point to react node directly.
* We should warning this since it will not work on FC.
*/
export declare function warnItemProp<T extends {
item: React.ReactInstance;
}>({ item, ...restInfo }: T): T;