-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshims-vue.d.ts
43 lines (37 loc) · 933 Bytes
/
shims-vue.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import type { VNode } from 'vue'
import type Vue from 'vue'
declare global {
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const Component: DefineComponent<object, object, any>
export default Component
// export type JSXComponent<Props = any> =
// | { new (): ComponentPublicInstance<Props> }
// | FunctionalComponent<Props>
}
declare module 'virtual:*' {
const result: any
export default result
}
declare module '*.scss' {
const scss: Record<string, string>
export default scss
}
declare module '*.tsx' {
import Vue from 'compatible-vue'
export default Vue
}
namespace JSX {
type Element = VNode
type ElementClass = Vue
interface ElementAttributesProperty {
$props: any
}
interface IntrinsicElements {
[elem: string]: any
}
interface IntrinsicAttributes {
[elem: string]: any
}
}
}