12 lines
383 B
TypeScript
12 lines
383 B
TypeScript
|
|
import type { ComponentCustomProperties } from 'vue'
|
||
|
|
|
||
|
|
// 扩展全局属性类型
|
||
|
|
declare module '@vue/runtime-core' {
|
||
|
|
interface ComponentCustomProperties {
|
||
|
|
// 声明你的全局方法类型(根据实际方法参数和返回值调整)
|
||
|
|
$handleInputLimit: (e: Event) => void;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 必须导出空对象,否则 TypeScript 会认为这是一个模块声明
|
||
|
|
export {}
|