@fun-land/fun-web 0.2.0 → 0.2.1

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/src/dom.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** DOM utilities for functional element creation and manipulation */
2
- import { FunState } from "./state";
2
+ import { type FunState } from "@fun-land/fun-state";
3
3
  import type { ElementChild } from "./types";
4
4
  import { filter } from "@fun-land/accessor";
5
5
 
@@ -259,7 +259,8 @@ export function keyedChildren<T extends Keyed>(
259
259
  const el = renderRow({
260
260
  signal: ctrl.signal,
261
261
  state: itemState,
262
- remove: () => list.mod((list) => list.filter((t) => t.key !== k)),
262
+ remove: () =>
263
+ list.mod((list: T[]) => list.filter((t) => t.key !== k)),
263
264
  });
264
265
  rows.set(k, { key: k, el, ctrl });
265
266
  }
package/tsconfig.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "moduleResolution": "node",
11
11
  "module": "CommonJS",
12
12
  "composite": true,
13
- "lib": ["ES2015", "DOM"]
13
+ "lib": ["ES2020", "DOM"]
14
14
  },
15
15
  "include": ["src/**/*.ts"]
16
16
  }