@wrnrlr/prelude 0.1.8 → 0.1.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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrnrlr/prelude",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "exports": "./src/mod.ts",
5
5
  "compilerOptions": {
6
6
  "strict": false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wrnrlr/prelude",
3
3
  "type": "module",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "author": "Werner Laurensse",
6
6
  "description": "A signal based frontend library with fine-grained reactivity",
7
7
  "main": "./src/mod.ts",
@@ -12,7 +12,7 @@ export type ShowProps<T> = {
12
12
  Show children if `when` prop is true, otherwise show `fallback`.
13
13
  @group Components
14
14
  */
15
- export function Show<T>(props:ShowProps<T>) {
15
+ export function Show<T>(props:any) {
16
16
  const condition = memo(()=>props.when)
17
17
  return memo(()=>{
18
18
  const c = condition()
@@ -43,7 +43,7 @@ export type ListProps<T> = {
43
43
  List
44
44
  @group Components
45
45
  */
46
- export function List<T>(props:ListProps<T>) {
46
+ export function List<T>(props:any) {
47
47
  const fallback = "fallback" in props && { fallback: () => props.fallback }
48
48
  const list = props.each
49
49
  const cb:any = (props.children as any)?.call ? props.children : (v:any)=>v