@fish-render/count-to
Version:
Fish Render countTo component for Vue 3
39 lines (30 loc) • 914 B
TypeScript
declare module '@fish-render/count-to' {
import { App } from 'vue'
export interface InstallFunction {
(app: App): void
}
export interface FishCountToPlugin {
install: InstallFunction
}
const install: InstallFunction
const FishCountTo: FishCountToPlugin
export default FishCountTo
export { install }
// 直接嵌入 vite-plugin-dts 生成的类型定义
export interface CountToProps {
startValue?: number;
endValue: number;
duration?: number;
prefix?: string;
suffix?: string;
autoplay?: boolean;
ssr?: boolean;
initialDisplay?: 'start' | 'end' | 'auto';
}
// 引用 vite-plugin-dts 生成的组件类型定义
export { default as CountTo } from './CountTo.vue'
}
declare module '@fish-render/count-to/types' {
// 重新导出主模块的类型,避免重复定义
export type { CountToProps } from '@fish-render/count-to'
}