index.d.ts 690 B

123456789101112
  1. interface UseCompositionOptions {
  2. afterComposition: (event: CompositionEvent) => void;
  3. emit?: ((event: 'compositionstart', evt: CompositionEvent) => void) & ((event: 'compositionupdate', evt: CompositionEvent) => void) & ((event: 'compositionend', evt: CompositionEvent) => void);
  4. }
  5. export declare function useComposition({ afterComposition, emit, }: UseCompositionOptions): {
  6. isComposing: import("vue").Ref<boolean>;
  7. handleComposition: (event: CompositionEvent) => void;
  8. handleCompositionStart: (event: CompositionEvent) => void;
  9. handleCompositionUpdate: (event: CompositionEvent) => void;
  10. handleCompositionEnd: (event: CompositionEvent) => void;
  11. };
  12. export {};