Browse Source

fix: augment `vue` rather than `@vue/runtime-core`

pull/38/head
Daniel Roe 1 year ago
parent
commit
7d0dbaba52
No known key found for this signature in database GPG Key ID: CBC814C393D93268
  1. 2
      components.d.ts
  2. 2
      src/visual-editor/types/index.d.ts

2
components.d.ts

@ -5,7 +5,7 @@ import '@vue/runtime-core';
export {};
declare module '@vue/runtime-core' {
declare module 'vue' {
export interface GlobalComponents {
ElAside: typeof import('element-plus/es')['ElAside'];
ElButton: typeof import('element-plus/es')['ElButton'];

2
src/visual-editor/types/index.d.ts

@ -36,7 +36,7 @@ declare global {
}
}
declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$$refs: any;
}

Loading…
Cancel
Save