useTextValueMapping.d.ts 342 B

123456
  1. import type { ComputedRef, Ref } from 'vue';
  2. export default function useTextValueMapping({ valueTexts, onTextChange, }: {
  3. /** Must useMemo, to assume that `valueTexts` only match on the first change */
  4. valueTexts: ComputedRef<string[]>;
  5. onTextChange: (text: string) => void;
  6. }): [Ref<string>, (text: string) => void, () => void];