i love deno-fmt
This commit is contained in:
parent
5197e3316d
commit
995161f491
9 changed files with 435 additions and 430 deletions
50
src/global.d.ts
vendored
50
src/global.d.ts
vendored
|
|
@ -8,34 +8,34 @@
|
|||
import type { JsxElement } from "interest/jsx-runtime";
|
||||
|
||||
type HTMLAttributeMap<T = HTMLElement> = Partial<
|
||||
Omit<T, keyof Element | "children" | "style"> & {
|
||||
style?: string;
|
||||
class?: string;
|
||||
children?: any;
|
||||
[key: `data-${string}`]: string | number | boolean | null | undefined;
|
||||
[key: `aria-${string}`]: string | number | boolean | null | undefined;
|
||||
}
|
||||
Omit<T, keyof Element | "children" | "style"> & {
|
||||
style?: string;
|
||||
class?: string;
|
||||
children?: any;
|
||||
[key: `data-${string}`]: string | number | boolean | null | undefined;
|
||||
[key: `aria-${string}`]: string | number | boolean | null | undefined;
|
||||
}
|
||||
>;
|
||||
|
||||
declare global {
|
||||
namespace JSX {
|
||||
type Element = JsxElement;
|
||||
namespace JSX {
|
||||
type Element = JsxElement;
|
||||
|
||||
export interface ElementChildrenAttribute {
|
||||
// deno-lint-ignore ban-types
|
||||
children: {};
|
||||
}
|
||||
export interface ElementChildrenAttribute {
|
||||
// deno-lint-ignore ban-types
|
||||
children: {};
|
||||
}
|
||||
|
||||
export type IntrinsicElements =
|
||||
& {
|
||||
[K in keyof HTMLElementTagNameMap]: HTMLAttributeMap<
|
||||
HTMLElementTagNameMap[K]
|
||||
>;
|
||||
}
|
||||
& {
|
||||
[K in keyof SVGElementTagNameMap]: HTMLAttributeMap<
|
||||
SVGElementTagNameMap[K]
|
||||
>;
|
||||
};
|
||||
}
|
||||
export type IntrinsicElements =
|
||||
& {
|
||||
[K in keyof HTMLElementTagNameMap]: HTMLAttributeMap<
|
||||
HTMLElementTagNameMap[K]
|
||||
>;
|
||||
}
|
||||
& {
|
||||
[K in keyof SVGElementTagNameMap]: HTMLAttributeMap<
|
||||
SVGElementTagNameMap[K]
|
||||
>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue