@hdsydsvenskan/utils
Advanced tools
Comparing version 4.20.0 to 4.20.1
@@ -30,6 +30,7 @@ import { Primitive } from 'type-fest'; | ||
type MaybePromised<T> = T|Promise<T>; | ||
type NonFunction<T> = T extends Function ? never : T; | ||
export type ResolveValueParam<T, P extends any[]> = ((...params: P) => MaybePromised<T>)|MaybePromised<T>; | ||
export type ResolveValueRawParam<T, P extends any[]> = ((...params: P) => T)|T; | ||
export type ResolveValueWithThisParam<T, C, P extends any[]> = ((this: C, ...params: P) => MaybePromised<T>)|MaybePromised<T>; | ||
export type ResolveValueParam<T, P extends any[] = []> = ((...params: P) => MaybePromised<T>)|Promise<T>|NonFunction<T>; | ||
export type ResolveValueRawParam<T, P extends any[] = []> = ((...params: P) => T)|NonFunction<T>; | ||
export type ResolveValueWithThisParam<T, C, P extends any[] = []> = ((this: C, ...params: P) => MaybePromised<T>)|Promise<T>|NonFunction<T>; | ||
@@ -36,0 +37,0 @@ declare function resolveValue<T, P extends any[]> (value: ResolveValueParam<T, P>, ...valueArgs: P): Promise<T>; |
@@ -18,5 +18,5 @@ export type CacheStore = import("./types").BasicCacheStore & import("./types").CacheStoreExtras; | ||
export type MaybePromised<T> = T | Promise<T>; | ||
export type ResolveValueParam<T, P extends any[]> = T | Promise<T> | ((...params: P) => import("./advanced-types").MaybePromised<T>); | ||
export type ResolveValueRawParam<T, P extends any[]> = T | ((...params: P) => T); | ||
export type ResolveValueWithThisParam<T, C, P extends any[]> = T | Promise<T> | ((this: C, ...params: P) => import("./advanced-types").MaybePromised<T>); | ||
export type ResolveValueParam<T, P extends any[]> = Promise<T> | import("./advanced-types").NonFunction<T> | ((...params: P) => import("./advanced-types").MaybePromised<T>); | ||
export type ResolveValueRawParam<T, P extends any[]> = import("./advanced-types").NonFunction<T> | ((...params: P) => T); | ||
export type ResolveValueWithThisParam<T, C, P extends any[]> = Promise<T> | import("./advanced-types").NonFunction<T> | ((this: C, ...params: P) => import("./advanced-types").MaybePromised<T>); | ||
export type EnsureArray<X> = import("../lib-ts/array").UnpackArray<X>[]; | ||
@@ -23,0 +23,0 @@ export type UnpackArray<X> = X extends (infer U)[] ? U : X; |
{ | ||
"name": "@hdsydsvenskan/utils", | ||
"version": "4.20.0", | ||
"version": "4.20.1", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "description": "Misc utility methods that's useful for our sites", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109077
2590