cradova 3.11.2 → 3.11.4

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.
@@ -8,8 +8,8 @@ export declare const cra: <E extends HTMLElement>(tag: string) => (...Children_a
8
8
  */
9
9
  export declare function $if<E extends HTMLElement>(condition: any, ...elements: VJS_params_TYPE<E>): VJS_params_TYPE<E> | undefined;
10
10
  export declare function $ifelse(condition: any, ifTrue: VJS_params_TYPE<any>, ifFalse?: VJS_params_TYPE<any>): VJS_params_TYPE<any> | undefined;
11
- export declare function $case<E extends HTMLElement = HTMLElement>(value: any, elements: VJS_params_TYPE<E>): (key: any) => VJS_params_TYPE<E> | undefined;
12
- export declare function $switch<K = unknown>(key: K, ...cases: ((key: K) => VJS_params_TYPE<any>)[]): VJS_params_TYPE<any> | undefined;
11
+ export declare function $case(value: any, elements: () => HTMLElement): (key: any) => (() => HTMLElement) | undefined;
12
+ export declare function $switch<K = unknown>(key: K, ...cases: ((key: K) => HTMLElement | undefined)[]): HTMLElement | undefined;
13
13
  type LoopData<Type> = Type[];
14
14
  export declare function loop<Type>(datalist: LoopData<Type>, component: (value: Type, index?: number, array?: LoopData<Type>) => HTMLElement | HTMLElement[] | DocumentFragment | DocumentFragment[] | undefined | undefined[]): HTMLElement[] | undefined;
15
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.11.2",
3
+ "version": "3.11.4",
4
4
  "description": "Build Powerful ⚡ Web Apps with Ease",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",