Skip to content

Commit 22088e8

Browse files
committed
fix(type): fix .vue file type error
1 parent aaae668 commit 22088e8

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

src/components/Form/src/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export type ComponentType =
105105
| 'RangePicker'
106106
| 'WeekPicker'
107107
| 'TimePicker'
108-
| 'ImageUpload'
109108
| 'Switch'
110109
| 'StrengthMeter'
111110
| 'Upload'

src/types/tsx.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { ComponentRenderProxy, VNode } from 'vue';
2+
3+
declare global {
4+
namespace JSX {
5+
// tslint:disable no-empty-interface
6+
type Element = VNode;
7+
// tslint:disable no-empty-interface
8+
type ElementClass = ComponentRenderProxy;
9+
interface ElementAttributesProperty {
10+
$props: any;
11+
}
12+
interface IntrinsicElements {
13+
[elem: string]: any;
14+
}
15+
interface IntrinsicAttributes {
16+
[elem: string]: any;
17+
}
18+
}
19+
}

src/types/vue-app-env.d.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,3 @@ declare module '*.vue' {
33
const Component: ReturnType<typeof defineComponent>;
44
export default Component;
55
}
6-
7-
import type { ComponentRenderProxy, VNode } from 'vue';
8-
9-
declare global {
10-
namespace JSX {
11-
// tslint:disable no-empty-interface
12-
type Element = VNode;
13-
// tslint:disable no-empty-interface
14-
type ElementClass = ComponentRenderProxy;
15-
interface ElementAttributesProperty {
16-
$props: any;
17-
}
18-
interface IntrinsicElements {
19-
[elem: string]: any;
20-
}
21-
interface IntrinsicAttributes {
22-
[elem: string]: any;
23-
}
24-
}
25-
}

0 commit comments

Comments
 (0)