mono-jsx 0.0.0-alpha.1 → 0.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/html.d.ts +2 -2
- package/types/jsx.d.ts +6 -4
- package/types/mono.d.ts +1 -1
package/package.json
CHANGED
package/types/html.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="dom" />
|
|
2
2
|
|
|
3
|
-
import * as Aria from "./aria.d.ts";
|
|
4
|
-
import * as Mono from "./mono.d.ts";
|
|
3
|
+
import type * as Aria from "./aria.d.ts";
|
|
4
|
+
import type * as Mono from "./mono.d.ts";
|
|
5
5
|
|
|
6
6
|
export namespace HTML {
|
|
7
7
|
type Class = string | boolean | undefined | null | Record<string, boolean>;
|
package/types/jsx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Mono from "./mono.d.ts";
|
|
2
|
-
import { HTML } from "./html.d.ts";
|
|
3
|
-
export { BaseCSSProperties, CSSProperties } from "./mono.d.ts";
|
|
1
|
+
import type * as Mono from "./mono.d.ts";
|
|
2
|
+
import type { HTML } from "./html.d.ts";
|
|
3
|
+
export type { BaseCSSProperties, CSSProperties } from "./mono.d.ts";
|
|
4
4
|
|
|
5
5
|
export type ChildType = VNode | string | number | bigint | boolean | null;
|
|
6
6
|
export type Child = ChildType | ChildType[] | Generator<ChildType> | AsyncGenerator<ChildType>;
|
|
@@ -38,7 +38,9 @@ declare global {
|
|
|
38
38
|
}[keyof IntrinsicElements]
|
|
39
39
|
| FC<P>;
|
|
40
40
|
interface Element extends VNode {}
|
|
41
|
-
interface CustomElements {
|
|
41
|
+
interface CustomElements {
|
|
42
|
+
[key: `${string}-${string}`]: Record<string, any>;
|
|
43
|
+
}
|
|
42
44
|
interface IntrinsicAttributes extends Mono.Attributes, Mono.AsyncComponentAttributes {}
|
|
43
45
|
interface IntrinsicElements extends HTML.Elements, HTML.SVGElements, Mono.Elements, CustomElements {}
|
|
44
46
|
const customElements: {
|
package/types/mono.d.ts
CHANGED