-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
43 lines (43 loc) · 1.18 KB
/
types.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
declare namespace JSX {
interface HtmlTag {
// AJAX
'hx-get'?: ExtractRoutes<'get'>;
'hx-post'?: ExtractRoutes<'post'>;
'hx-put'?: ExtractRoutes<'put'>;
'hx-patch'?: ExtractRoutes<'patch'>;
'hx-delete'?: ExtractRoutes<'delete'>;
// Core
'hx-boost'?: string;
'hx-push-url'?: string;
'hx-select'?: string;
'hx-select-oob'?: string;
'hx-swap'?: string;
'hx-swap-oob'?: string;
'hx-target'?: string;
'hx-trigger'?: string;
'hx-vals'?: string;
// Additional
'hx-confirm'?: string;
'hx-disable'?: boolean;
'hx-disinherit'?: string;
'hx-encoding'?: string;
'hx-ext'?: string;
'hx-headers'?: string;
'hx-history'?: 'false';
'hx-history-elt'?: boolean;
'hx-include'?: string;
'hx-indicator'?: string;
'hx-params'?: string;
'hx-preserve'?: boolean;
'hx-prompt'?: string;
'hx-replace-url'?: string;
'hx-request'?: string;
'sse-connect'?: string;
'sse-swap'?: string;
'hx-sync'?: string;
'hx-validate'?: boolean;
'hx-vars'?: string;
'ws-connect'?: string;
'ws-send'?: string;
}
}