mirror of
https://github.com/flarum/framework.git
synced 2025-02-16 20:12:45 +08:00
Move HTMLInputTypes
type to global declarations
This commit is contained in:
parent
b336fd6374
commit
c900cb3f6d
28
js/src/@types/global.d.ts
vendored
28
js/src/@types/global.d.ts
vendored
|
@ -1,3 +1,31 @@
|
|||
/**
|
||||
* A type that matches any valid value for the `type` attribute on an
|
||||
* HTML `<input>` element.
|
||||
*/
|
||||
declare type HTMLInputTypes =
|
||||
| 'button'
|
||||
| 'checkbox'
|
||||
| 'color'
|
||||
| 'date'
|
||||
| 'datetime-local'
|
||||
| 'email'
|
||||
| 'file'
|
||||
| 'hidden'
|
||||
| 'image'
|
||||
| 'month'
|
||||
| 'number'
|
||||
| 'password'
|
||||
| 'radio'
|
||||
| 'range'
|
||||
| 'reset'
|
||||
| 'search'
|
||||
| 'submit'
|
||||
| 'tel'
|
||||
| 'text'
|
||||
| 'time'
|
||||
| 'url'
|
||||
| 'week';
|
||||
|
||||
/**
|
||||
* @deprecated Please import `app` from a namespace instead of using it as a global variable.
|
||||
*
|
||||
|
|
|
@ -20,30 +20,6 @@ interface AdminHeaderOptions {
|
|||
className: string;
|
||||
}
|
||||
|
||||
type HTMLInputTypes =
|
||||
| 'button'
|
||||
| 'checkbox'
|
||||
| 'color'
|
||||
| 'date'
|
||||
| 'datetime-local'
|
||||
| 'email'
|
||||
| 'file'
|
||||
| 'hidden'
|
||||
| 'image'
|
||||
| 'month'
|
||||
| 'number'
|
||||
| 'password'
|
||||
| 'radio'
|
||||
| 'range'
|
||||
| 'reset'
|
||||
| 'search'
|
||||
| 'submit'
|
||||
| 'tel'
|
||||
| 'text'
|
||||
| 'time'
|
||||
| 'url'
|
||||
| 'week';
|
||||
|
||||
interface CommonSettingsItemOptions extends Mithril.Attributes {
|
||||
setting: string;
|
||||
label: string | ReturnType<typeof app.translator.trans>;
|
||||
|
|
Loading…
Reference in New Issue
Block a user