mixlea-utils-js 0.1.14 → 0.1.16

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.
@@ -337,10 +337,10 @@ export declare function deepMultiSet<T = unknown>(target: T, assignment: Record<
337
337
 
338
338
  export declare function deepSet(obj: any, path: string | Array<string | number>, value: any): void;
339
339
 
340
- declare function dispatchEvent_2(el: any, e: EventEmit): Promise<void>;
340
+ declare function dispatchEvent_2<T = any>(el: T, e: EventEmit): Promise<T>;
341
341
  export { dispatchEvent_2 as dispatchEvent }
342
342
 
343
- export declare function dispatchEvents(el: any, events: EventEmit_2[]): Promise<void>;
343
+ export declare function dispatchEvents<T = any>(el: T, events: EventEmit_2[]): Promise<T>;
344
344
 
345
345
  export declare function distanceSimilarity(a: string, b: string): number;
346
346
 
@@ -722,7 +722,7 @@ export declare function isNotPlainObject(val: any): boolean;
722
722
 
723
723
  export declare function isNotUndefined(value: any): boolean;
724
724
 
725
- export declare function isNotVoid(value: any): boolean;
725
+ export declare function isNotVoid<T>(input: T): input is Exclude<T, VoidLike_2>;
726
726
 
727
727
  export declare function isNullish<T>(value: T | null | undefined): value is null | undefined;
728
728
 
@@ -765,7 +765,7 @@ export declare function isValidDate(input: any): input is Date;
765
765
 
766
766
  export declare function isValidNumber(val: any): boolean;
767
767
 
768
- export declare function isVoid(val: any): boolean;
768
+ export declare function isVoid<T>(input: T): input is Extract<T, VoidLike>;
769
769
 
770
770
  export declare function isWebViewBrowser(): boolean;
771
771
 
@@ -1187,7 +1187,7 @@ export declare function setDOMStyle(element: any, styles: Record<string, any>):
1187
1187
 
1188
1188
  export declare function setDOMStylePropertys(element: any, propertys: Record<string, any>): void;
1189
1189
 
1190
- export declare function setHtmlInputValue<T = any>(input: T, value: any, opts?: {
1190
+ export declare function setHtmlInputValue<T = any>(el: T, value: any, opts?: {
1191
1191
  dispatchEvent: boolean | 'bubbles';
1192
1192
  }): Promise<T>;
1193
1193
 
@@ -1385,6 +1385,10 @@ declare type ValueOrFn<T> = T | (() => T);
1385
1385
 
1386
1386
  declare type ValueOrFn_2<T> = T | (() => T);
1387
1387
 
1388
+ declare type VoidLike = null | undefined | '' | [];
1389
+
1390
+ declare type VoidLike_2 = null | undefined | '' | [];
1391
+
1388
1392
  export declare function when<V>(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): {
1389
1393
  elseWhen(condition: ValueOrFn_2<boolean>, result: ValueOrFn_2<V>): any;
1390
1394
  default(defaultResult: ValueOrFn_2<V>): V;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.14",
4
+ "version": "0.1.16",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {