elexis/global.d.ts
2024-02-02 00:01:03 +08:00

22 lines
933 B
TypeScript

import { $ as fluentx } from "./$index";
import { $Element } from "./lib/$Element";
declare global {
const $ = fluentx;
type OrMatrix<T> = T | OrMatrix<T>[];
type OrArray<T> = T | T[];
type OrPromise<T> = T | Promise<T>;
type Mutable<T> = {
-readonly [k in keyof T]: T[k];
};
type Types = 'string' | 'number' | 'boolean' | 'object' | 'symbol' | 'bigint' | 'function' | 'undefined'
type Autocapitalize = 'none' | 'off' | 'sentences' | 'on' | 'words' | 'characters';
type SelectionDirection = "forward" | "backward" | "none";
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";
type TextDirection = 'ltr' | 'rtl' | 'auto' | '';
interface HTMLElement {
$: $Element;
}
}