@artmate/chat
Version:
借鉴字节开源react库AntX,通过vue实现的版本
8 lines (7 loc) • 361 B
TypeScript
import { Ref, VNode } from 'vue';
/**
* Return typed content and typing status when typing is enabled.
* Or return content directly.
*/
declare const useTypedEffect: (content: Ref<string>, typingEnabled: boolean, typingStep: number, typingInterval: number) => [typedContent: Ref<() => string | VNode>, isTyping: Ref<boolean>];
export default useTypedEffect;