warnUtil.d.ts 283 B

12345678
  1. /// <reference types="react" />
  2. /**
  3. * `onClick` event return `info.item` which point to react node directly.
  4. * We should warning this since it will not work on FC.
  5. */
  6. export declare function warnItemProp<T extends {
  7. item: React.ReactInstance;
  8. }>({ item, ...restInfo }: T): T;