mono-jsx 0.9.8 → 0.9.9

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/jsx-runtime.mjs CHANGED
@@ -176,7 +176,7 @@ var $vnode = /* @__PURE__ */ Symbol.for("jsx.vnode");
176
176
  var $setup = /* @__PURE__ */ Symbol.for("mono.setup");
177
177
 
178
178
  // version.ts
179
- var VERSION = "0.9.8";
179
+ var VERSION = "0.9.9";
180
180
 
181
181
  // render.ts
182
182
  var FunctionIdGenerator = class extends Map {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mono-jsx",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "`<html>` as a `Response`.",
5
5
  "type": "module",
6
6
  "module": "./index.mjs",
@@ -1,9 +1,9 @@
1
- /// <reference types="../jsx.d.ts" />
1
+ import { ChildPrimitiveType } from "../jsx.d.ts";
2
2
 
3
3
  export interface Atom<T> {
4
4
  get(): T;
5
5
  set(value: T | ((prev: T) => T)): void;
6
- map(callback: (value: T extends (infer V)[] ? V : T, index: number) => JSX.Element): JSX.Element[];
6
+ map(callback: (value: T extends (infer V)[] ? V : T, index: number) => ChildPrimitiveType): ChildPrimitiveType[];
7
7
  ref(): T;
8
8
  ref<V>(callback: (value: T) => V): V;
9
9
  }