-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathglobal.d.ts
84 lines (83 loc) · 2.43 KB
/
global.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import type { DetailedHTMLProps, HTMLAttributes } from "react";
import type PyScriptWindowObject from "~types/pyscript-window-object/pyscript-window-object";
import type ReactElementProps from "~types/react-element-properties/react-element-properties";
declare global {
interface Window {
pyscript: PyScriptWindowObject;
}
namespace JSX {
export interface IntrinsicElements {
["py-script"]: Omit<
ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
>,
"children"
> & {
children: string;
output?: string;
};
["py-loader"]: Omit<
ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
>,
"children"
>;
["py-env"]: Omit<
ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
>,
"children"
> & {
children: string;
};
["py-repl"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
children?: string;
"auto-generate"?: boolean;
};
["py-config"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
children?: string;
};
["py-inputbox"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
children: string;
};
["py-box"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
>;
["py-register-widget"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
src: string;
name?: string;
klass?: string;
};
["py-button"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
children: string;
label: string;
};
["py-title"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
children: string;
};
["py-terminal"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
auto?: boolean;
};
["py-splashscreen"]: ReactElementProps<
DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>
> & {
autoclose?: boolean;
enabled?: boolean;
};
}
}
}