-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
55 lines (52 loc) · 1.19 KB
/
typings.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
export class RequestMethodConfig {
/**
* Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`.
*/
'action': string;
/**
* Fields contains multiple fields
*/
'fields': Array<FormField>;
'messages'?: Array<Message>;
/**
* Method is the form method (e.g. POST)
*/
'method': string;
/**
* Providers is set for the \"oidc\" request method.
*/
'providers'?: Array<FormField>;
}
export class Message {
'context'?: object;
'id'?: number;
'text'?: string;
'type'?: string;
}
export class FormField {
/**
* Disabled is the equivalent of `<input {{if .Disabled}}disabled{{end}}\">`
*/
'disabled'?: boolean;
'messages'?: Array<Message>;
/**
* Name is the equivalent of `<input name=\"{{.Name}}\">`
*/
'name': string;
/**
* Pattern is the equivalent of `<input pattern=\"{{.Pattern}}\">`
*/
'pattern'?: string;
/**
* Required is the equivalent of `<input required=\"{{.Required}}\">`
*/
'required'?: boolean;
/**
* Type is the equivalent of `<input type=\"{{.Type}}\">`
*/
'type': string;
/**
* Value is the equivalent of `<input value=\"{{.Value}}\">`
*/
'value'?: object;
}