@neovici/cosmoz-utils 6.9.1 → 6.10.0

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.
@@ -6,6 +6,7 @@ export declare function constant(): () => undefined;
6
6
  export declare function constant<T>(v: T): () => T;
7
7
  export declare const constTrue: () => true, constUndefined: () => undefined, noop: () => undefined, identity: <T>(obj: T) => T, or: <A, F extends OrFn<A>>(...fns: F[]) => (...args: A[]) => boolean;
8
8
  export declare const once: <A extends Arr, R, F extends OnceFn<A, R> = OnceFn<A, R>>(fn: F, check?: OnceCheckFn<A>) => (...args: A) => any;
9
- export declare function invoke<A, R, F extends (...args: A[]) => R>(fn: F, ...args: A[]): ReturnType<F>;
10
- export declare function invoke<F>(fn: F, ...args: unknown[]): F;
9
+ export type InvokedType<T> = T extends (...args: any[]) => infer R ? R : T;
10
+ export type InvokedParameters<F> = F extends (...args: infer A) => any ? A : never;
11
+ export declare function invoke<F>(fn: F, ...args: InvokedParameters<F>): InvokedType<F>;
11
12
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-utils",
3
- "version": "6.9.1",
3
+ "version": "6.10.0",
4
4
  "description": "Date, money and template management functions commonly needed in Cosmoz views.",
5
5
  "keywords": [
6
6
  "polymer",