util.d.ts 555 B

12345678910
  1. import type React from 'react';
  2. import type { ReactNode } from 'react';
  3. import type { EditableConfig } from './interface';
  4. /**
  5. * We trade Map as deps which may change with same value but different ref object.
  6. * We should make it as hash for deps
  7. * */
  8. export declare function stringify<K extends PropertyKey, V>(obj: Record<K, V> | Map<K, V>): string;
  9. export declare function genDataNodeKey(key: React.Key): string;
  10. export declare function getRemovable(closable?: boolean, closeIcon?: ReactNode, editable?: EditableConfig, disabled?: boolean): boolean;