UNPKG

element-tiptap-vue3-niyuta

Version:

Rich-text editor build by baidu api and tiptap

33 lines (32 loc) 765 B
import { Extension } from '@tiptap/core'; export type AiOptions = { types: string[]; }; declare module '@tiptap/core' { interface Commands<ReturnType> { ai: { /** * Summarize text */ summarize: () => ReturnType; /** * Polish text */ polish: () => ReturnType; /** * Translate text */ translate: () => ReturnType; /** * Correct text */ correct: () => ReturnType; /** * Continue text */ continuation: () => ReturnType; }; } } declare const Ai: Extension<AiOptions, any>; export default Ai;