@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 +1 -1
- package/package.json +1 -1
- package/src/controlflow.ts +2 -2
package/deno.json
CHANGED
package/package.json
CHANGED
package/src/controlflow.ts
CHANGED
@@ -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:
|
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:
|
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
|