Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-lodash

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-lodash - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

86

lib/lodash.d.ts
/// <reference types="lodash" />
import lodash = require('lodash');
declare const _default: {
readonly ary: {
<TResult extends Function>(func: Function, n?: number | undefined): TResult;
<T extends Function, TResult extends Function>(func: T, n?: number | undefined): TResult;
};
readonly compact: <T>(array?: ArrayLike<false | "" | 0 | T | null | undefined> | null | undefined) => T[];
readonly ary: (func: (...args: any[]) => any, n?: number | undefined) => (...args: any[]) => any;
readonly compact: <T>(array: ArrayLike<false | "" | 0 | T | null | undefined> | null | undefined) => T[];
readonly get: {
<TObject, TResult>(object: TObject, path: lodash.Many<lodash.StringRepresentable>, defaultValue?: TResult | undefined): TResult;
<TResult>(object: any, path: lodash.Many<lodash.StringRepresentable>, defaultValue?: TResult | undefined): TResult;
<TObject extends object, TKey extends keyof TObject>(object: TObject, path: TKey | [TKey]): TObject[TKey];
<TObject extends object, TKey extends keyof TObject>(object: TObject | null | undefined, path: TKey | [TKey]): TObject[TKey] | undefined;
<TObject extends object, TKey extends keyof TObject, TDefault>(object: TObject | null | undefined, path: TKey | [TKey], defaultValue: TDefault): TDefault | TObject[TKey];
<TDefault>(object: null | undefined, path: lodash.Many<PropertyKey>, defaultValue: TDefault): TDefault;
(object: null | undefined, path: lodash.Many<PropertyKey>): undefined;
(object: any, path: lodash.Many<PropertyKey>, defaultValue?: any): any;
};

@@ -18,53 +19,50 @@ readonly identity: {

readonly mapValues: {
<T, TResult>(obj: lodash.Dictionary<T> | null | undefined, callback: lodash.ObjectIterator<T, TResult>): lodash.Dictionary<TResult>;
<T>(obj: lodash.Dictionary<T> | null | undefined, where: lodash.Dictionary<T>): lodash.Dictionary<boolean>;
<T, TMapped>(obj: T | null | undefined, pluck: string): TMapped;
<T>(obj: T | null | undefined, callback: lodash.ObjectIterator<any, any>): T;
<T extends object, TResult>(obj: T | null | undefined, callback: lodash.ObjectIterator<T, TResult>): {
[P in keyof T]: TResult;
};
<T extends object>(obj: T | null | undefined, iteratee: object): {
[P in keyof T]: boolean;
};
<T, TKey extends keyof T>(obj: lodash.Dictionary<T> | null | undefined, iteratee: TKey): lodash.Dictionary<T[TKey]>;
<T extends object, TKey extends keyof T>(obj: T | null | undefined, iteratee: string): {
[P in keyof T]: any;
};
<TResult>(obj: string | null | undefined, callback: lodash.StringIterator<TResult>): lodash.NumericDictionary<TResult>;
<T>(obj: lodash.Dictionary<T> | null | undefined): lodash.Dictionary<T>;
<T extends object>(obj: T): T;
<T extends object>(obj: T | null | undefined): {} | T;
(obj: string | null | undefined): lodash.NumericDictionary<string>;
};
readonly maxBy: {
<T>(collection: ArrayLike<T> | null | undefined, iteratee?: lodash.ListIterator<T, any> | undefined): T | undefined;
<T>(collection: lodash.Dictionary<T> | null | undefined, iteratee?: lodash.DictionaryIterator<T, any> | undefined): T | undefined;
<T>(collection: ArrayLike<T> | lodash.Dictionary<T> | null | undefined, iteratee?: string | undefined): T | undefined;
<TObject extends {}, T>(collection: ArrayLike<T> | lodash.Dictionary<T> | null | undefined, whereValue?: TObject | undefined): T | undefined;
};
readonly maxBy: <T>(collection: ArrayLike<T> | null | undefined, iteratee?: string | [string, any] | lodash.ListIterator<T, lodash.NotVoid> | lodash.PartialDeep<T> | undefined) => T | undefined;
readonly padEnd: (string?: string | undefined, length?: number | undefined, chars?: string | undefined) => string;
readonly partial: lodash.Partial;
readonly pick: <TResult extends {}, T extends {}>(object: T | null | undefined, ...predicate: lodash.Many<lodash.StringRepresentable>[]) => TResult;
readonly pickBy: <TResult extends {}, T extends {}>(object: T | null | undefined, predicate?: lodash.ObjectIterator<any, boolean> | undefined) => TResult;
readonly property: <TObj, TResult>(path: lodash.Many<lodash.StringRepresentable>) => (obj: TObj) => TResult;
readonly result: {
<TObject, TResult>(object: TObject, path: lodash.Many<lodash.StringRepresentable>, defaultValue?: TResult | ((...args: any[]) => TResult) | undefined): TResult;
<TResult>(object: any, path: lodash.Many<lodash.StringRepresentable>, defaultValue?: TResult | ((...args: any[]) => TResult) | undefined): TResult;
readonly pick: {
<T extends object, U extends keyof T>(object: T | null | undefined, ...props: lodash.Many<U>[]): Pick<T, U>;
<T>(object: T | null | undefined, ...props: lodash.Many<PropertyKey>[]): lodash.PartialDeep<T>;
};
readonly pickBy: <T extends object>(object: T | null | undefined, predicate?: string | [string, any] | ((value: T[keyof T], key: string) => lodash.NotVoid) | lodash.PartialDeep<T[keyof T]> | undefined) => Partial<T>;
readonly property: <TObj, TResult>(path: lodash.Many<PropertyKey>) => (obj: TObj) => TResult;
readonly result: <TResult>(object: any, path: lodash.Many<PropertyKey>, defaultValue?: TResult | ((...args: any[]) => TResult) | undefined) => TResult;
readonly set: {
<TResult>(object: Object, path: lodash.Many<lodash.StringRepresentable>, value: any): TResult;
<V, TResult>(object: Object, path: lodash.Many<lodash.StringRepresentable>, value: V): TResult;
<O, V, TResult>(object: O, path: lodash.Many<lodash.StringRepresentable>, value: V): TResult;
<T extends object>(object: T, path: lodash.Many<PropertyKey>, value: any): T;
<TResult>(object: object, path: lodash.Many<PropertyKey>, value: any): TResult;
};
readonly sortBy: {
<T, TSort>(collection: ArrayLike<T> | null | undefined, iteratee?: lodash.ListIterator<T, TSort> | undefined): T[];
<T, TSort>(collection: lodash.Dictionary<T> | null | undefined, iteratee?: lodash.DictionaryIterator<T, TSort> | undefined): T[];
<T>(collection: ArrayLike<T> | lodash.Dictionary<T> | null | undefined, iteratee: string): T[];
<W extends {}, T>(collection: ArrayLike<T> | lodash.Dictionary<T> | null | undefined, whereValue: W): T[];
<T>(collection: ArrayLike<T> | lodash.Dictionary<T> | null | undefined): T[];
<T>(collection: ArrayLike<T> | null | undefined, iteratees: (string | Object | lodash.ListIterator<T, any>)[]): T[];
<T>(collection: ArrayLike<T> | null | undefined, ...iteratees: (string | Object | lodash.ListIterator<T, boolean>)[]): T[];
<T>(collection: ArrayLike<T> | null | undefined, ...iteratees: lodash.Many<lodash.ListIteratee<T>>[]): T[];
<T extends object>(collection: T | null | undefined, ...iteratees: lodash.Many<lodash.ObjectIteratee<T>>[]): T[keyof T][];
};
readonly sortedUniqBy: {
<T>(array: ArrayLike<T> | null | undefined, iteratee: lodash.ListIterator<T, any>): T[];
<T, TSort>(array: ArrayLike<T> | null | undefined, iteratee: lodash.ListIterator<T, TSort>): T[];
<T>(array: ArrayLike<T> | null | undefined, iteratee: string): T[];
<T>(array: ArrayLike<T> | null | undefined, iteratee: Object): T[];
<TWhere extends {}, T>(array: ArrayLike<T> | null | undefined, iteratee: TWhere): T[];
(array: string | null | undefined, iteratee: lodash.StringIterator<lodash.NotVoid>): string[];
<T>(array: ArrayLike<T> | null | undefined, iteratee: lodash.ListIteratee<T>): T[];
};
readonly uniq: {
<T>(array: ArrayLike<T> | null | undefined): T[];
<T, TSort>(array: ArrayLike<T> | null | undefined): T[];
readonly uniq: <T>(array: ArrayLike<T> | null | undefined) => T[];
readonly uniqBy: {
(array: string | null | undefined, iteratee: lodash.StringIterator<lodash.NotVoid>): string[];
<T>(array: ArrayLike<T> | null | undefined, iteratee: lodash.ListIteratee<T>): T[];
};
readonly zipObject: {
<TValues, TResult extends {}>(props: ArrayLike<lodash.StringRepresentable> | ArrayLike<ArrayLike<any>>, values?: ArrayLike<TValues> | undefined): TResult;
<TResult extends {}>(props: ArrayLike<lodash.StringRepresentable> | ArrayLike<ArrayLike<any>>, values?: ArrayLike<any> | undefined): TResult;
(props: ArrayLike<lodash.StringRepresentable> | ArrayLike<ArrayLike<any>>, values?: ArrayLike<any> | undefined): lodash.Dictionary<any>;
<T>(props: ArrayLike<PropertyKey>, values: ArrayLike<T>): lodash.Dictionary<T>;
(props?: ArrayLike<PropertyKey> | undefined): lodash.Dictionary<undefined>;
};
};
export default _default;

@@ -20,2 +20,3 @@ "use strict";

get uniq() { return fetch('lodash/uniq'); },
get uniqBy() { return fetch('lodash/uniqBy'); },
get zipObject() { return fetch('lodash/zipObject'); },

@@ -22,0 +23,0 @@ };

{
"name": "ts-lodash",
"description": "lazy-loading lodash for typescript",
"version": "4.0.5",
"version": "4.0.6",
"author": "Jeff Dickey",

@@ -10,6 +10,6 @@ "dependencies": {

"devDependencies": {
"@types/lodash": "^4.14.74",
"@types/node": "^8.0.28",
"@types/lodash": "^4.14.88",
"@types/node": "^8.0.58",
"del-cli": "^1.1.0",
"typescript": "^2.5.2"
"typescript": "^2.6.2"
},

@@ -16,0 +16,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc