amis-rpc-design/node_modules/rc-tabs/lib/util.d.ts
2023-10-07 19:42:30 +08: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;