Skip to content

Commit

Permalink
fix: 🧩 修改类型“{}”上不存在属性“xxx”报错
Browse files Browse the repository at this point in the history
  • Loading branch information
ita-code committed Jan 31, 2024
1 parent d6788a4 commit bc26786
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/typings/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;

declare type Nullable<T> = T | null;

declare module "@vue/runtime-core" {
export interface ComponentCustomProperties {
$api: typeof API;
$mitt: mitt;
}
}
// declare module "@vue/runtime-core" {
// export interface ComponentCustomProperties {
// $api: typeof API;
// $mitt: mitt;
// }
// }

0 comments on commit bc26786

Please sign in to comment.