Skip to content

Commit

Permalink
fix(type): fix .vue file type error
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Feb 5, 2021
1 parent aaae668 commit 22088e8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/components/Form/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export type ComponentType =
| 'RangePicker'
| 'WeekPicker'
| 'TimePicker'
| 'ImageUpload'
| 'Switch'
| 'StrengthMeter'
| 'Upload'
Expand Down
19 changes: 19 additions & 0 deletions src/types/tsx.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { ComponentRenderProxy, VNode } from 'vue';

declare global {
namespace JSX {
// tslint:disable no-empty-interface
type Element = VNode;
// tslint:disable no-empty-interface
type ElementClass = ComponentRenderProxy;
interface ElementAttributesProperty {
$props: any;
}
interface IntrinsicElements {
[elem: string]: any;
}
interface IntrinsicAttributes {
[elem: string]: any;
}
}
}
20 changes: 0 additions & 20 deletions src/types/vue-app-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,3 @@ declare module '*.vue' {
const Component: ReturnType<typeof defineComponent>;
export default Component;
}

import type { ComponentRenderProxy, VNode } from 'vue';

declare global {
namespace JSX {
// tslint:disable no-empty-interface
type Element = VNode;
// tslint:disable no-empty-interface
type ElementClass = ComponentRenderProxy;
interface ElementAttributesProperty {
$props: any;
}
interface IntrinsicElements {
[elem: string]: any;
}
interface IntrinsicAttributes {
[elem: string]: any;
}
}
}

0 comments on commit 22088e8

Please sign in to comment.