mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
77 lines
1.4 KiB
TypeScript
77 lines
1.4 KiB
TypeScript
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
|
|
type InputType =
|
|
| 'button'
|
|
| 'checkbox'
|
|
| 'color'
|
|
| 'date'
|
|
| 'datetime-local'
|
|
| 'email'
|
|
| 'file'
|
|
| 'hidden'
|
|
| 'image'
|
|
| 'month'
|
|
| 'number'
|
|
| 'password'
|
|
| 'radio'
|
|
| 'range'
|
|
| 'reset'
|
|
| 'search'
|
|
| 'submit'
|
|
| 'tel'
|
|
| 'text'
|
|
| 'time'
|
|
| 'url'
|
|
| 'week';
|
|
|
|
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofilling-form-controls:-the-autocomplete-attribute
|
|
type AutoCompleteType =
|
|
| 'name'
|
|
| 'honorific-prefix'
|
|
| 'given-name'
|
|
| 'additional-name'
|
|
| 'family-name'
|
|
| 'honorific-suffix'
|
|
| 'nickname'
|
|
| 'username'
|
|
| 'new-password'
|
|
| 'current-password'
|
|
| 'one-time-code'
|
|
| 'organization-title'
|
|
| 'organization'
|
|
| 'street-address'
|
|
| 'address-line1'
|
|
| 'address-line2'
|
|
| 'address-line3'
|
|
| 'address-level4'
|
|
| 'address-level3'
|
|
| 'address-level2'
|
|
| 'address-level1'
|
|
| 'country'
|
|
| 'country-name'
|
|
| 'postal-code'
|
|
| 'cc-name'
|
|
| 'cc-given-name'
|
|
| 'cc-additional-name'
|
|
| 'cc-family-name'
|
|
| 'cc-number'
|
|
| 'cc-exp'
|
|
| 'cc-exp-month'
|
|
| 'cc-exp-year'
|
|
| 'cc-csc'
|
|
| 'cc-type'
|
|
| 'transaction-currency'
|
|
| 'transaction-amount'
|
|
| 'language'
|
|
| 'bday'
|
|
| 'bday-day'
|
|
| 'bday-month'
|
|
| 'bday-year'
|
|
| 'sex'
|
|
| 'url'
|
|
| 'photo'
|
|
| 'mobile';
|
|
|
|
// TO-DO: remove me
|
|
interface Body {
|
|
json<T>(): Promise<T>;
|
|
}
|