ant-design-x-vue
Version:
Craft AI-driven interfaces effortlessly
8 lines (7 loc) • 401 B
TypeScript
import type { Ref, VNode } from 'vue';
/**
* Return typed content and typing status when typing is enabled.
* Or return content directly.
*/
declare const useTypedEffect: (content: Ref<VNode | object | string>, typingEnabled: Ref<boolean>, typingStep: Ref<number>, typingInterval: Ref<number>) => [typedContent: Ref<VNode | object | string>, isTyping: Ref<boolean>];
export default useTypedEffect;