amis-rpc-design/node_modules/rc-picker/es/hooks/useTextValueMapping.d.ts
2023-10-07 19:42:30 +08:00

6 lines
279 B
TypeScript

export default function useTextValueMapping({ valueTexts, onTextChange, }: {
/** Must useMemo, to assume that `valueTexts` only match on the first change */
valueTexts: string[];
onTextChange: (text: string) => void;
}): [string, (text: string) => void, () => void];