mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 19:38:40 +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.
|
* @deprecated Please import `app` from a namespace instead of using it as a global variable.
|
||||||
*
|
*
|
||||||
|
@ -20,30 +20,6 @@ interface AdminHeaderOptions {
|
|||||||
className: string;
|
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 {
|
interface CommonSettingsItemOptions extends Mithril.Attributes {
|
||||||
setting: string;
|
setting: string;
|
||||||
label: string | ReturnType<typeof app.translator.trans>;
|
label: string | ReturnType<typeof app.translator.trans>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user