PromoCursed/node_modules/rc-tabs/lib/util.d.ts
2024-08-20 23:25:37 +04:00

11 lines
568 B
TypeScript

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