-
Notifications
You must be signed in to change notification settings - Fork 40
/
enable-check.d.ts
38 lines (35 loc) · 1.17 KB
/
enable-check.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
import Vue from "vue";
import * as base from "./types/base";
import * as builtin from "./types/builtin-components";
declare global {
namespace VueTsxSupport.JSX {
interface Element extends base.Element {}
interface ElementClass extends base.ElementClass {}
type LibraryManagedAttributes<C, P> = C extends new () => infer V
? base.CombinedTsxComponentAttrs<
base.AttributesOf<V>,
base.PropsOf<V>,
base.PrefixedEventsOf<V>,
base.OnOf<V>,
V extends { $scopedSlots: infer X } ? X : {},
base.IsPropsObjectAllowed<V>
> &
(V extends { _tsxattrs: infer T } ? T : {})
: P;
interface IntrinsicElements extends base.IntrinsicElements {
// allow unknown elements
[name: string]: any;
// builtin components
transition: base.CombinedTsxComponentAttrs<builtin.TransitionProps, {}, {}, {}, {}, true>;
"transition-group": base.CombinedTsxComponentAttrs<
builtin.TransitionGroupProps,
{},
{},
{},
{},
true
>;
"keep-alive": base.CombinedTsxComponentAttrs<builtin.KeepAliveProps, {}, {}, {}, {}, true>;
}
}
}