helper-fns
Advanced tools
Comparing version 2.6.20 to 2.6.21
@@ -96,3 +96,6 @@ import * as timers_promises from 'timers/promises'; | ||
declare const pluck: <T, K extends keyof T>(array: T[], key: K) => T[K][]; | ||
declare const orderBy: <T extends object, K extends keyof T>(array: T[], properties: K[], orders: "asc" | "desc") => void; | ||
declare const orderBy: <T extends Record<string, any>>(array: T[], options: { | ||
property: string; | ||
order?: "asc" | "desc"; | ||
}[]) => T[]; | ||
declare const removeNull: (object: Record<string, any>) => Record<string, any>; | ||
@@ -128,6 +131,6 @@ declare const removeUndefined: <T extends Record<string, any>>(object: T) => T; | ||
declare function isFunction<T extends FunctionType>(value: any): value is T; | ||
declare function isNonPrimitive(x?: unknown): x is object; | ||
declare const isNumber: (value: any) => value is number; | ||
declare function isNonPrimitive(value?: unknown): value is object; | ||
declare const isNumber: (value: unknown) => value is number; | ||
declare const isNull: (value: unknown) => value is null; | ||
declare function isObject(value: any): value is object; | ||
declare function isObject(value: unknown): value is object; | ||
declare function isPrimitive(value?: unknown): value is Primitive; | ||
@@ -137,3 +140,3 @@ declare function isString(value: unknown): value is string; | ||
declare const isUndefined: (value: unknown) => value is undefined; | ||
declare function isRegExp(value: any): value is RegExp; | ||
declare function isRegExp(value: unknown): value is RegExp; | ||
declare const is: { | ||
@@ -144,3 +147,3 @@ isArray: typeof isArray; | ||
isNull: (value: unknown) => value is null; | ||
isNumber: (value: any) => value is number; | ||
isNumber: (value: unknown) => value is number; | ||
isUndefined: (value: unknown) => value is undefined; | ||
@@ -147,0 +150,0 @@ isObject: typeof isObject; |
{ | ||
"name": "helper-fns", | ||
"type": "module", | ||
"version": "2.6.20", | ||
"version": "2.6.21", | ||
"packageManager": "pnpm@8.7.1", | ||
@@ -6,0 +6,0 @@ "description": "Some common utilities functions for everyday backend usage with zero dependencies", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
164214
228