From c6609aff88f2c59e4df9adb93df5c7932adfd7b4 Mon Sep 17 00:00:00 2001 From: Nora Simonow Date: Mon, 2 Nov 2015 16:27:56 +0100 Subject: [PATCH 01/59] Fix typo in angular-resource.d.ts --- angularjs/angular-resource.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular-resource.d.ts b/angularjs/angular-resource.d.ts index 5c8637059..76930196b 100644 --- a/angularjs/angular-resource.d.ts +++ b/angularjs/angular-resource.d.ts @@ -50,7 +50,7 @@ declare module angular.resource { params?: any; url?: string; isArray?: boolean; - transformRequest?: angular.IHttpResquestTransformer | angular.IHttpResquestTransformer[]; + transformRequest?: angular.IHttpRequestTransformer | angular.IHttpRequestTransformer[]; transformResponse?: angular.IHttpResponseTransformer | angular.IHttpResponseTransformer[]; headers?: any; cache?: boolean | angular.ICacheObject; From d9d0667f9f6ff25867af69753d7d30d0cc6c9fb1 Mon Sep 17 00:00:00 2001 From: SammyG4Free Date: Mon, 23 Nov 2015 10:56:54 -0800 Subject: [PATCH 02/59] Type Definitions for DataTables Buttons extension. Added type definitions to support DataTables Buttons extension. --- .../jquery.dataTables.buttons-tests.ts | 33 +++++ .../jquery.dataTables.buttons.d.ts | 113 ++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 jquery.dataTables/jquery.dataTables.buttons-tests.ts create mode 100644 jquery.dataTables/jquery.dataTables.buttons.d.ts diff --git a/jquery.dataTables/jquery.dataTables.buttons-tests.ts b/jquery.dataTables/jquery.dataTables.buttons-tests.ts new file mode 100644 index 000000000..4a47b0f7e --- /dev/null +++ b/jquery.dataTables/jquery.dataTables.buttons-tests.ts @@ -0,0 +1,33 @@ +/// +/// +/// + +$(document).ready(function () { + + var config: DataTables.Settings = + { + // Buttons extension options + buttons: [ + { + extend: 'excel', + text: 'Excel', + className: 'class', + exportOptions: { + columns: ':visible' + } + }, + { + action: function (e, dt, node, config) { }, + available: function (dt, config) { return true; }, + destroy: function (dt, node, config) { }, + enabled: true, + init: function (dt, node, config) { }, + key: 'a', + name: 'name', + namespace: 'namespace', + titleAttr: 'title', + } + ], + } + +}); \ No newline at end of file diff --git a/jquery.dataTables/jquery.dataTables.buttons.d.ts b/jquery.dataTables/jquery.dataTables.buttons.d.ts new file mode 100644 index 000000000..fc018eba9 --- /dev/null +++ b/jquery.dataTables/jquery.dataTables.buttons.d.ts @@ -0,0 +1,113 @@ +// Type definitions for JQuery DataTables (v1.10.10) Buttons extension (v1.1.0) +// Project: http://datatables.net/extensions/buttons/ +// Definitions by: Sam Germano +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// + +declare module DataTables { + export interface Settings { + /** + * Buttons extension options + */ + buttons?: boolean | string[] | ButtonSettings[]; + } + + //#region "button-settings" + + /** + * Buttons extension options + */ + export interface ButtonSettings { + /** + * Action to take when the button is activated + */ + action?: FunctionButtonAction; + + /** + * Ensure that any requirements have been satisfied before initialising a button + */ + available?: FunctionButtonAvailable; + + /** + * Set the class name for the button + */ + className?: string; + + /** + * Function that is called when the button is destroyed + */ + destroy?: FunctionButtonInit; + + /** + * Set a button's initial enabled state + */ + enabled?: boolean; + + /** + * Define which button type the button should be based on + */ + extend?: string; + + /** + * Initialisation function that can be used to add events specific to this button + */ + init?: FunctionButtonInit; + + /** + * Define an activation key for a button + */ + key?: string | ButtonKey; + + /** + * Set a name for each selection + */ + name?: string; + + /** + * Unique namespace for every button + */ + namespace?: string; + + /** + * The text to show in the button + */ + text?: string | ButtonText; + + /** + * Button 'title' attribute text + */ + titleAttr?: string; + + exportOptions?: ButtonExportOptions; + autoPrint?: boolean; + } + + export interface FunctionButtonAvailable { + (dt: DataTables.DataTable, config: any): boolean + } + export interface ButtonExportOptions { + columns?: string; + } + + export interface ButtonKey { + key?: string; + shiftKey?: boolean; + altKey?: boolean; + ctrlKey?: boolean; + metaKey?: boolean; + } + + export interface ButtonText { + (dt: DataTables.DataTable, node: JQuery, config: any): string + } + export interface FunctionButtonInit { + (dt: DataTables.DataTable, node: JQuery, config: any): void + } + // api object? + export interface FunctionButtonAction { + (e: any, dt: DataTables.DataTable, node: JQuery, config: any): void + } + //#endregion "button-settings +} \ No newline at end of file From 55ff277951c35e639fd3d983f90f1fc2514ff1a1 Mon Sep 17 00:00:00 2001 From: SammyG4Free Date: Mon, 23 Nov 2015 11:19:12 -0800 Subject: [PATCH 03/59] Header updated --- jquery.dataTables/jquery.dataTables.buttons.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.dataTables/jquery.dataTables.buttons.d.ts b/jquery.dataTables/jquery.dataTables.buttons.d.ts index fc018eba9..8ab0cff17 100644 --- a/jquery.dataTables/jquery.dataTables.buttons.d.ts +++ b/jquery.dataTables/jquery.dataTables.buttons.d.ts @@ -1,4 +1,4 @@ -// Type definitions for JQuery DataTables (v1.10.10) Buttons extension (v1.1.0) +// Type definitions for JQuery DataTables Buttons extension 1.1.0 // Project: http://datatables.net/extensions/buttons/ // Definitions by: Sam Germano // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 005e2c77a1c2f09445b36a3c043c8a4203eaad7e Mon Sep 17 00:00:00 2001 From: SammyG4Free Date: Tue, 15 Dec 2015 15:29:24 -0800 Subject: [PATCH 04/59] Updated to match naming standards --- .../datatables-buttons-tests.ts | 4 ++-- .../datatables-buttons.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename jquery.dataTables/jquery.dataTables.buttons-tests.ts => datatables-buttons/datatables-buttons-tests.ts (88%) rename jquery.dataTables/jquery.dataTables.buttons.d.ts => datatables-buttons/datatables-buttons.d.ts (97%) diff --git a/jquery.dataTables/jquery.dataTables.buttons-tests.ts b/datatables-buttons/datatables-buttons-tests.ts similarity index 88% rename from jquery.dataTables/jquery.dataTables.buttons-tests.ts rename to datatables-buttons/datatables-buttons-tests.ts index 4a47b0f7e..dbe176eea 100644 --- a/jquery.dataTables/jquery.dataTables.buttons-tests.ts +++ b/datatables-buttons/datatables-buttons-tests.ts @@ -1,6 +1,6 @@ /// -/// -/// +/// +/// $(document).ready(function () { diff --git a/jquery.dataTables/jquery.dataTables.buttons.d.ts b/datatables-buttons/datatables-buttons.d.ts similarity index 97% rename from jquery.dataTables/jquery.dataTables.buttons.d.ts rename to datatables-buttons/datatables-buttons.d.ts index 8ab0cff17..fd047f0a8 100644 --- a/jquery.dataTables/jquery.dataTables.buttons.d.ts +++ b/datatables-buttons/datatables-buttons.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// +/// declare module DataTables { export interface Settings { From b0b4ecb45a330c86f6b4ca634bbbd747acbf0b48 Mon Sep 17 00:00:00 2001 From: Robert Van Gorkom Date: Sat, 16 Jan 2016 10:39:58 -0800 Subject: [PATCH 05/59] Adding meteor-publish-composite defs. --- .../meteor-publish-composite-tests.ts | 60 +++++++++++++++++++ .../meteor-publish-composite.d.ts | 39 ++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 meteor-publish-composite/meteor-publish-composite-tests.ts create mode 100644 meteor-publish-composite/meteor-publish-composite.d.ts diff --git a/meteor-publish-composite/meteor-publish-composite-tests.ts b/meteor-publish-composite/meteor-publish-composite-tests.ts new file mode 100644 index 000000000..ad84c0f3a --- /dev/null +++ b/meteor-publish-composite/meteor-publish-composite-tests.ts @@ -0,0 +1,60 @@ +/// +/// + +import User = Meteor.User; +interface IPost { _id : string, authorId : string }; +interface IComment { authorId : string }; +var Posts : Mongo.Collection = new Mongo.Collection('Posts'); +var Comments : Mongo.Collection = new Mongo.Collection('Comments'); + +// Server +Meteor.publishComposite('topTenPosts', { + find: function() : Mongo.Cursor { + // Find top ten highest scoring posts + return Posts.find({}, { sort: { score: -1 }, limit: 10 }); + }, + children: [ + { + find: function(post) { + // Find post author. Even though we only want to return + // one record here, we use "find" instead of "findOne" + // since this function should return a cursor. + return Meteor.users.find( + { _id: post.authorId }, + { limit: 1, fields: { profile: 1 } }); + } + }, + { + find: function(post) { + // Find top two comments on post + return Comments.find( + { postId: post._id }, + { sort: { score: -1 }, limit: 2 }); + }, + children: [ + { + find: function(comment, post) { + // Find user that authored comment. + return Meteor.users.find( + { _id: comment.authorId }, + { limit: 1, fields: { profile: 1 } }); + } + } + ] + } + ] +}); + +// Server +Meteor.publishComposite('postsByUser', function(userId, limit) { + return { + find: function() { + // Find posts made by user. Note arguments for callback function + // being used in query. + return Posts.find({ authorId: userId }, { limit: limit }); + }, + children: [ + // This section will be similar to that of the previous example. + ] + } +}); diff --git a/meteor-publish-composite/meteor-publish-composite.d.ts b/meteor-publish-composite/meteor-publish-composite.d.ts new file mode 100644 index 000000000..6b7c0308c --- /dev/null +++ b/meteor-publish-composite/meteor-publish-composite.d.ts @@ -0,0 +1,39 @@ +// Type definitions for meteor-publish-composite +// Project: https://github.com/englue/meteor-publish-composite +// Definitions by: Robert Van Gorkom +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare interface IPublishCompositeConfigN { + children? : IPublishCompositeConfigN[]; + find(...args : any[]) : Mongo.Cursor; +} + +declare interface IPublishCompositeConfig4 { + children? : IPublishCompositeConfigN[]; + find(arg1 : InLevel1, arg2 : InLevel2, arg3 : InLevel3, arg4 : InLevel4) : Mongo.Cursor; +} + +declare interface IPublishCompositeConfig3 { + children? : IPublishCompositeConfig4[]; + find(arg1 : InLevel1, arg2 : InLevel2, arg3 : InLevel3) : Mongo.Cursor; +} + +declare interface IPublishCompositeConfig2 { + children? : IPublishCompositeConfig3[]; + find(arg1 : InLevel1, arg2 : InLevel2) : Mongo.Cursor; +} + +declare interface IPublishCompositeConfig1 { + children? : IPublishCompositeConfig2[]; + find(arg1 : InLevel1) : Mongo.Cursor; +} + +declare interface IPublishCompositeConfig { + children? : IPublishCompositeConfig1[]; + find() : Mongo.Cursor; +} + +declare module Meteor { + function publishComposite(name : string, config : IPublishCompositeConfig) : void; + function publishComposite(name : string, configFunc : (...args : any[]) => IPublishCompositeConfig) : void; +} From 1de41285d9757970847c59d284244c0243b46181 Mon Sep 17 00:00:00 2001 From: Robert Van Gorkom Date: Sat, 16 Jan 2016 10:48:41 -0800 Subject: [PATCH 06/59] Adding missing reference. --- meteor-publish-composite/meteor-publish-composite.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meteor-publish-composite/meteor-publish-composite.d.ts b/meteor-publish-composite/meteor-publish-composite.d.ts index 6b7c0308c..d3b3aff87 100644 --- a/meteor-publish-composite/meteor-publish-composite.d.ts +++ b/meteor-publish-composite/meteor-publish-composite.d.ts @@ -3,6 +3,8 @@ // Definitions by: Robert Van Gorkom // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + declare interface IPublishCompositeConfigN { children? : IPublishCompositeConfigN[]; find(...args : any[]) : Mongo.Cursor; From 62550bd2dc274af7c228993526a83d3d8714ca03 Mon Sep 17 00:00:00 2001 From: Robert Van Gorkom Date: Mon, 18 Jan 2016 21:11:51 -0800 Subject: [PATCH 07/59] Fixing order of args in find functions. --- meteor-publish-composite/meteor-publish-composite.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meteor-publish-composite/meteor-publish-composite.d.ts b/meteor-publish-composite/meteor-publish-composite.d.ts index d3b3aff87..0fe64fa17 100644 --- a/meteor-publish-composite/meteor-publish-composite.d.ts +++ b/meteor-publish-composite/meteor-publish-composite.d.ts @@ -12,17 +12,17 @@ declare interface IPublishCompositeConfigN { declare interface IPublishCompositeConfig4 { children? : IPublishCompositeConfigN[]; - find(arg1 : InLevel1, arg2 : InLevel2, arg3 : InLevel3, arg4 : InLevel4) : Mongo.Cursor; + find(arg4 : InLevel4, arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; } declare interface IPublishCompositeConfig3 { children? : IPublishCompositeConfig4[]; - find(arg1 : InLevel1, arg2 : InLevel2, arg3 : InLevel3) : Mongo.Cursor; + find(arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; } declare interface IPublishCompositeConfig2 { children? : IPublishCompositeConfig3[]; - find(arg1 : InLevel1, arg2 : InLevel2) : Mongo.Cursor; + find(arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; } declare interface IPublishCompositeConfig1 { @@ -36,6 +36,6 @@ declare interface IPublishCompositeConfig { } declare module Meteor { - function publishComposite(name : string, config : IPublishCompositeConfig) : void; + function publishComposite(name : string, config : IPublishCompositeConfig|IPublishCompositeConfig[]) : void; function publishComposite(name : string, configFunc : (...args : any[]) => IPublishCompositeConfig) : void; } From fecf4a9e6c2df5f96d00b2c0c4eb0ca16276e36e Mon Sep 17 00:00:00 2001 From: Robert Van Gorkom Date: Tue, 19 Jan 2016 08:08:04 -0800 Subject: [PATCH 08/59] Adding array return type and formating to play nice with tslint. --- .../meteor-publish-composite.d.ts | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/meteor-publish-composite/meteor-publish-composite.d.ts b/meteor-publish-composite/meteor-publish-composite.d.ts index 0fe64fa17..afc02bc55 100644 --- a/meteor-publish-composite/meteor-publish-composite.d.ts +++ b/meteor-publish-composite/meteor-publish-composite.d.ts @@ -7,27 +7,43 @@ declare interface IPublishCompositeConfigN { children? : IPublishCompositeConfigN[]; - find(...args : any[]) : Mongo.Cursor; + find( + ...args : any[] + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig4 { children? : IPublishCompositeConfigN[]; - find(arg4 : InLevel4, arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; + find( + arg4 : InLevel4, + arg3 : InLevel3, + arg2 : InLevel2, + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig3 { children? : IPublishCompositeConfig4[]; - find(arg3 : InLevel3, arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; + find( + arg3 : InLevel3, + arg2 : InLevel2, + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig2 { children? : IPublishCompositeConfig3[]; - find(arg2 : InLevel2, arg1 : InLevel1) : Mongo.Cursor; + find( + arg2 : InLevel2, + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig1 { children? : IPublishCompositeConfig2[]; - find(arg1 : InLevel1) : Mongo.Cursor; + find( + arg1 : InLevel1 + ) : Mongo.Cursor; } declare interface IPublishCompositeConfig { @@ -36,6 +52,14 @@ declare interface IPublishCompositeConfig { } declare module Meteor { - function publishComposite(name : string, config : IPublishCompositeConfig|IPublishCompositeConfig[]) : void; - function publishComposite(name : string, configFunc : (...args : any[]) => IPublishCompositeConfig) : void; + function publishComposite( + name : string, + config : IPublishCompositeConfig|IPublishCompositeConfig[] + ) : void; + + function publishComposite( + name : string, + configFunc : (...args : any[]) => + IPublishCompositeConfig|IPublishCompositeConfig[] + ) : void; } From d299ef07770732e6592564eefceac3038adbd822 Mon Sep 17 00:00:00 2001 From: Robert Van Gorkom Date: Sat, 23 Jan 2016 08:06:08 -0800 Subject: [PATCH 09/59] Changing interface name to not include I prefix. --- .../meteor-publish-composite.d.ts | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/meteor-publish-composite/meteor-publish-composite.d.ts b/meteor-publish-composite/meteor-publish-composite.d.ts index afc02bc55..ddab6ef47 100644 --- a/meteor-publish-composite/meteor-publish-composite.d.ts +++ b/meteor-publish-composite/meteor-publish-composite.d.ts @@ -5,15 +5,15 @@ /// -declare interface IPublishCompositeConfigN { - children? : IPublishCompositeConfigN[]; +declare interface PublishCompositeConfigN { + children? : PublishCompositeConfigN[]; find( ...args : any[] ) : Mongo.Cursor; } -declare interface IPublishCompositeConfig4 { - children? : IPublishCompositeConfigN[]; +declare interface PublishCompositeConfig4 { + children? : PublishCompositeConfigN[]; find( arg4 : InLevel4, arg3 : InLevel3, @@ -22,8 +22,8 @@ declare interface IPublishCompositeConfig4; } -declare interface IPublishCompositeConfig3 { - children? : IPublishCompositeConfig4[]; +declare interface PublishCompositeConfig3 { + children? : PublishCompositeConfig4[]; find( arg3 : InLevel3, arg2 : InLevel2, @@ -31,35 +31,35 @@ declare interface IPublishCompositeConfig3; } -declare interface IPublishCompositeConfig2 { - children? : IPublishCompositeConfig3[]; +declare interface PublishCompositeConfig2 { + children? : PublishCompositeConfig3[]; find( arg2 : InLevel2, arg1 : InLevel1 ) : Mongo.Cursor; } -declare interface IPublishCompositeConfig1 { - children? : IPublishCompositeConfig2[]; +declare interface PublishCompositeConfig1 { + children? : PublishCompositeConfig2[]; find( arg1 : InLevel1 ) : Mongo.Cursor; } -declare interface IPublishCompositeConfig { - children? : IPublishCompositeConfig1[]; +declare interface PublishCompositeConfig { + children? : PublishCompositeConfig1[]; find() : Mongo.Cursor; } declare module Meteor { function publishComposite( name : string, - config : IPublishCompositeConfig|IPublishCompositeConfig[] + config : PublishCompositeConfig|PublishCompositeConfig[] ) : void; function publishComposite( name : string, configFunc : (...args : any[]) => - IPublishCompositeConfig|IPublishCompositeConfig[] + PublishCompositeConfig|PublishCompositeConfig[] ) : void; } From 924fabc272bae25af7ebe3bbaa678973580b9029 Mon Sep 17 00:00:00 2001 From: matgr1 Date: Sat, 23 Jan 2016 14:04:34 -0500 Subject: [PATCH 10/59] Update three.d.ts fixed Object3D.modelViewMatrix and Object3D.normalMatrix property definitions --- threejs/three.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/threejs/three.d.ts b/threejs/three.d.ts index 37804860e..a2323c001 100644 --- a/threejs/three.d.ts +++ b/threejs/three.d.ts @@ -1410,9 +1410,9 @@ declare module THREE { */ scale: Vector3; - modelViewMatrix: { value: Matrix4 }; + modelViewMatrix: Matrix4; - normalMatrix: { value: Matrix3 }; + normalMatrix: Matrix3; /** * When this is set, then the rotationMatrix gets calculated every frame. From c3dd962e949bfa37b899ebb0a31ff8fd89df8ecb Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Thu, 28 Jan 2016 12:18:28 -0500 Subject: [PATCH 11/59] Add ss-utils --- ss-utils/ss-utils-tests.ts | 41 ++++++++++++++ ss-utils/ss-utils.d.ts | 113 +++++++++++++++++++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 ss-utils/ss-utils-tests.ts create mode 100644 ss-utils/ss-utils.d.ts diff --git a/ss-utils/ss-utils-tests.ts b/ss-utils/ss-utils-tests.ts new file mode 100644 index 000000000..7527435b6 --- /dev/null +++ b/ss-utils/ss-utils-tests.ts @@ -0,0 +1,41 @@ +/// +/// + +declare var EventSource : sse.IEventSourceStatic; + +declare module sse { + interface IEventSourceStatic extends EventTarget { + new (url: string, eventSourceInitDict?: IEventSourceInit):IEventSourceStatic; + url: string; + } + + interface IEventSourceInit { + withCredentials?: boolean; + } +} + +function test_ssutils() { + $.ss.eventReceivers = { "document": document }; + + var source = new EventSource("/event-stream?channels=home,work"); + $(source).handleServerEvents({ + handlers: { + onConnect: function(connect:SSUtilsSSEConnect) {}, + onHeartbeat: function(msg:SSUtilsSSEHeartbeat, e:MessageEvent){}, + onJoin: function(msg:SSUtilsSSEJoin) {}, + onLeave: function(msg:SSUtilsSSELeave) {} + }, + receivers: { + tv: { + watch: function(){} + } + } + }); + + $(document).bindHandlers({ + announce: function (msg:string) {} + }) + .on('customEvent', function (e, msg, msgEvent) { }); + + $.ss.handlers["changeChannel"]("home"); +} \ No newline at end of file diff --git a/ss-utils/ss-utils.d.ts b/ss-utils/ss-utils.d.ts new file mode 100644 index 000000000..99f4325fd --- /dev/null +++ b/ss-utils/ss-utils.d.ts @@ -0,0 +1,113 @@ +// Type definitions for ServiceStack Utils v0.0.1 +// Project: https://servicestack.net/ +// Definitions by: Demis Bellot +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +interface JQuery { + setFieldError: (name: string, msg: string) => void; + serializeMap: () => { [index: string]: any }; + applyErrors: (status: ResponseStatus, opt?: SSUtilsApplyErrorsOptions) => JQuery; + clearErrors: () => JQuery; + bindForm: (opt?: SSUtilsApplyErrorsOptions) => JQuery; + applyValues: (values: { [index: string]: string }) => JQuery; + bindHandlers: (handlers: { [index: string]: Function }) => JQuery; + setActiveLinks: () => JQuery; + handleServerEvents: (opt?: SSUtilsHandleServerEventsOptions) => void; +} + +interface SSUtilsValidation { + overrideMessages: boolean; + messages: { [index: string]: string }; + errorFilter: (errorMsg: string, errorCode: string, type: string) => void; +} + +interface SSUtilsValidationOptional { + overrideMessages?: boolean; + messages?: { [index: string]: string }; + errorFilter?: (errorMsg: string, errorCode: string, type: string) => void; +} + +interface SSUtilsApplyErrorsOptions extends SSUtilsValidationOptional { +} + +interface SSUtilsBindFormOptions { + validation?: SSUtilsValidationOptional; + validate?: (form: HTMLFormElement) => boolean; + onSubmitDisable?: string; + complete?: (...args: any[]) => void; + error?: (...args: any[]) => void; +} + +interface SSUtilsHandleServerEventsOptions { + handlers?: { [index: string]: Function }; + validate?: (op?: string, target?: string, msg?: string, json?: string) => boolean; + heartbeatUrl?: string; + heartbeatIntervalMs?: number; + unRegisterUrl?: string; + receivers?: { [index: string]: any }; + success?: (selector: string, msg: string, e: any) => void; +} + +interface ResponseStatus { + errorCode: string; + message: string; + stackTrace: string; + errors: ResponseError[]; +} +interface ResponseError { + errorCode: string; + fieldName: string; + message: string; +} + +interface SSUtilsStatic { + handlers: { [index: string]: Function }; + onSubmitDisable: string; + validation: SSUtilsValidation; + clearAdjacentError: () => void; + todate: (s: string) => Date; + todfmt: (s: string) => string; + dfmt: (d: Date) => string; + dfmthm: (d: Date) => string; + tfmt12: (d: Date) => string; + splitOnFirst: (s: string) => string[]; + splitOnLast: (s: string) => string[]; + getSelection: () => string; + queryString: (url: string) => { [index: string]: string }; + createUrl: (route: string, args?: any) => string; + humanize: (s: string) => string; + + listenOn: string; + eventReceivers: any; + reconnectServerEvents: (opt: SSUtilsReconnectServerEventsOptions) => any; +} + +interface SSUtilsReconnectServerEventsOptions { + url?: string; + onerror?: (...args: any[]) => void; + onmessage?: (...args: any[]) => void; + errorArgs: any[]; +} + +interface JQueryStatic { + ss: SSUtilsStatic; +} + +interface SSUtilsSSECommand { + userId: string; + displayName: string; + channels: string; + profileUrl: string; +} +interface SSUtilsSSEHeartbeat extends SSUtilsSSECommand {} +interface SSUtilsSSEJoin extends SSUtilsSSECommand {} +interface SSUtilsSSELeave extends SSUtilsSSECommand {} +interface SSUtilsSSEConnect extends SSUtilsSSECommand { + id: string; + unRegisterUrl: string; + heartbeatUrl: string; + heartbeatIntervalMs: number; + idleTimeoutMs: number; +} From 2b6125a602bf964e143f3caa61667c0d9dd4224b Mon Sep 17 00:00:00 2001 From: Kevin Grasso Date: Thu, 28 Jan 2016 20:23:48 -0500 Subject: [PATCH 12/59] Lodash: _.invokeMap more robust & consistent with _.method/_.methodOf --- lodash/lodash-tests.js | 7797 ++++++++++++++++++++++++++++++++++++++++ lodash/lodash-tests.ts | 53 +- lodash/lodash.d.ts | 122 +- 3 files changed, 7949 insertions(+), 23 deletions(-) create mode 100644 lodash/lodash-tests.js diff --git a/lodash/lodash-tests.js b/lodash/lodash-tests.js new file mode 100644 index 000000000..b940a47c1 --- /dev/null +++ b/lodash/lodash-tests.js @@ -0,0 +1,7797 @@ +/// +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +var foodsOrganic = [ + { name: 'banana', organic: true }, + { name: 'beet', organic: false }, +]; +var foodsType = [ + { name: 'apple', type: 'fruit' }, + { name: 'banana', type: 'fruit' }, + { name: 'beet', type: 'vegetable' } +]; +var foodsCombined = [ + { 'name': 'apple', 'organic': false, 'type': 'fruit' }, + { 'name': 'carrot', 'organic': true, 'type': 'vegetable' } +]; +var stoogesQuotes = [ + { 'name': 'curly', 'quotes': ['Oh, a wise guy, eh?', 'Poifect!'] }, + { 'name': 'moe', 'quotes': ['Spread out!', 'You knucklehead!'] } +]; +var stoogesAges = [ + { 'name': 'moe', 'age': 40 }, + { 'name': 'larry', 'age': 50 } +]; +var stoogesAgesDict = { + first: { 'name': 'moe', 'age': 40 }, + second: { 'name': 'larry', 'age': 50 } +}; +var stoogesCombined = [ + { 'name': 'curly', 'age': 30, 'quotes': ['Oh, a wise guy, eh?', 'Poifect!'] }, + { 'name': 'moe', 'age': 40, 'quotes': ['Spread out!', 'You knucklehead!'] } +]; +var keys = [ + { 'dir': 'left', 'code': 97 }, + { 'dir': 'right', 'code': 100 } +]; +var Dog = (function () { + function Dog(name) { + this.name = name; + } + Dog.prototype.bark = function () { + console.log('Woof, woof!'); + }; + return Dog; +})(); +var result; +var any; +// _.MapCache +var testMapCache; +result = testMapCache.delete; +result = testMapCache.get; +result = testMapCache.has; +result = testMapCache.set; +// _ +var TestWrapper; +(function (TestWrapper) { + { + var result_1; + result_1 = _(''); + } + { + var result_2; + result_2 = _(42); + } + { + var result_3; + result_3 = _(true); + } + { + var result_4; + result_4 = _(['']); + } + { + var result_5; + result_5 = _({ a: '' }); + } +})(TestWrapper || (TestWrapper = {})); +//Wrapped array shortcut methods +result = _([1, 2, 3, 4]).join(','); +result = _([1, 2, 3, 4]).pop(); +result = _([1, 2, 3, 4]).push(5, 6, 7); +result = _([1, 2, 3, 4]).shift(); +result = _([1, 2, 3, 4]).sort(function (a, b) { return 1; }); +result = _([1, 2, 3, 4]).splice(1); +result = _([1, 2, 3, 4]).splice(1, 2, 5, 6); +result = _([1, 2, 3, 4]).unshift(5, 6); +/********* + * Array * + *********/ +// _.chunk +var TestChunk; +(function (TestChunk) { + var array; + var list; + { + var result_6; + result_6 = _.chunk(array); + result_6 = _.chunk(array, 42); + result_6 = _.chunk(list); + result_6 = _.chunk(list, 42); + } + { + var result_7; + result_7 = _(array).chunk(); + result_7 = _(array).chunk(42); + result_7 = _(list).chunk(); + result_7 = _(list).chunk(42); + } + { + var result_8; + result_8 = _(array).chain().chunk(); + result_8 = _(array).chain().chunk(42); + result_8 = _(list).chain().chunk(); + result_8 = _(list).chain().chunk(42); + } +})(TestChunk || (TestChunk = {})); +// _.compact +var TestCompact; +(function (TestCompact) { + var array; + var list; + { + var result_9; + result_9 = _.compact(); + result_9 = _.compact(array); + result_9 = _.compact(list); + } + { + var result_10; + result_10 = _(array).compact(); + result_10 = _(list).compact(); + } + { + var result_11; + result_11 = _(array).chain().compact(); + result_11 = _(list).chain().compact(); + } +})(TestCompact || (TestCompact = {})); +// _.difference +var TestDifference; +(function (TestDifference) { + var array; + var list; + { + var result_12; + result_12 = _.difference(array); + result_12 = _.difference(array, array); + result_12 = _.difference(array, list, array); + result_12 = _.difference(array, array, list, array); + result_12 = _.difference(list); + result_12 = _.difference(list, list); + result_12 = _.difference(list, array, list); + result_12 = _.difference(list, list, array, list); + } + { + var result_13; + result_13 = _(array).difference(); + result_13 = _(array).difference(array); + result_13 = _(array).difference(list, array); + result_13 = _(array).difference(array, list, array); + result_13 = _(list).difference(); + result_13 = _(list).difference(list); + result_13 = _(list).difference(array, list); + result_13 = _(list).difference(list, array, list); + } + { + var result_14; + result_14 = _(array).chain().difference(); + result_14 = _(array).chain().difference(array); + result_14 = _(array).chain().difference(list, array); + result_14 = _(array).chain().difference(array, list, array); + result_14 = _(list).chain().difference(); + result_14 = _(list).chain().difference(list); + result_14 = _(list).chain().difference(array, list); + result_14 = _(list).chain().difference(list, array, list); + } +})(TestDifference || (TestDifference = {})); +// _.drop +{ + var array; + var list; + { + var result_15; + result_15 = _.drop(array); + result_15 = _.drop(array, 42); + result_15 = _.drop(list); + result_15 = _.drop(list, 42); + } + { + var result_16; + result_16 = _(array).drop(); + result_16 = _(array).drop(42); + result_16 = _(list).drop(); + result_16 = _(list).drop(42); + } + { + var result_17; + result_17 = _(array).chain().drop(); + result_17 = _(array).chain().drop(42); + result_17 = _(list).chain().drop(); + result_17 = _(list).chain().drop(42); + } +} +// _.dropRight +var TestDropRight; +(function (TestDropRight) { + var array; + var list; + { + var result_18; + result_18 = _.dropRight(array); + result_18 = _.dropRight(array, 42); + result_18 = _.dropRight(list); + result_18 = _.dropRight(list, 42); + } + { + var result_19; + result_19 = _(array).dropRight(); + result_19 = _(array).dropRight(42); + result_19 = _(list).dropRight(); + result_19 = _(list).dropRight(42); + } + { + var result_20; + result_20 = _(array).chain().dropRight(); + result_20 = _(array).chain().dropRight(42); + result_20 = _(list).chain().dropRight(); + result_20 = _(list).chain().dropRight(42); + } +})(TestDropRight || (TestDropRight = {})); +// _.dropRightWhile +var TestDropRightWhile; +(function (TestDropRightWhile) { + var array; + var list; + var predicateFn; + { + var result_21; + result_21 = _.dropRightWhile(array); + result_21 = _.dropRightWhile(array, predicateFn); + result_21 = _.dropRightWhile(array, predicateFn, any); + result_21 = _.dropRightWhile(array, ''); + result_21 = _.dropRightWhile(array, '', any); + result_21 = _.dropRightWhile(array, { a: 42 }); + result_21 = _.dropRightWhile(list); + result_21 = _.dropRightWhile(list, predicateFn); + result_21 = _.dropRightWhile(list, predicateFn, any); + result_21 = _.dropRightWhile(list, ''); + result_21 = _.dropRightWhile(list, '', any); + result_21 = _.dropRightWhile(list, { a: 42 }); + } + { + var result_22; + result_22 = _(array).dropRightWhile(); + result_22 = _(array).dropRightWhile(predicateFn); + result_22 = _(array).dropRightWhile(predicateFn, any); + result_22 = _(array).dropRightWhile(''); + result_22 = _(array).dropRightWhile('', any); + result_22 = _(array).dropRightWhile({ a: 42 }); + result_22 = _(list).dropRightWhile(); + result_22 = _(list).dropRightWhile(predicateFn); + result_22 = _(list).dropRightWhile(predicateFn, any); + result_22 = _(list).dropRightWhile(''); + result_22 = _(list).dropRightWhile('', any); + result_22 = _(list).dropRightWhile({ a: 42 }); + } + { + var result_23; + result_23 = _(array).chain().dropRightWhile(); + result_23 = _(array).chain().dropRightWhile(predicateFn); + result_23 = _(array).chain().dropRightWhile(predicateFn, any); + result_23 = _(array).chain().dropRightWhile(''); + result_23 = _(array).chain().dropRightWhile('', any); + result_23 = _(array).chain().dropRightWhile({ a: 42 }); + result_23 = _(list).chain().dropRightWhile(); + result_23 = _(list).chain().dropRightWhile(predicateFn); + result_23 = _(list).chain().dropRightWhile(predicateFn, any); + result_23 = _(list).chain().dropRightWhile(''); + result_23 = _(list).chain().dropRightWhile('', any); + result_23 = _(list).chain().dropRightWhile({ a: 42 }); + } +})(TestDropRightWhile || (TestDropRightWhile = {})); +// _.dropWhile +var TestDropWhile; +(function (TestDropWhile) { + var array; + var list; + var predicateFn; + { + var result_24; + result_24 = _.dropWhile(array); + result_24 = _.dropWhile(array, predicateFn); + result_24 = _.dropWhile(array, predicateFn, any); + result_24 = _.dropWhile(array, ''); + result_24 = _.dropWhile(array, '', any); + result_24 = _.dropWhile(array, { a: 42 }); + result_24 = _.dropWhile(list); + result_24 = _.dropWhile(list, predicateFn); + result_24 = _.dropWhile(list, predicateFn, any); + result_24 = _.dropWhile(list, ''); + result_24 = _.dropWhile(list, '', any); + result_24 = _.dropWhile(list, { a: 42 }); + } + { + var result_25; + result_25 = _(array).dropWhile(); + result_25 = _(array).dropWhile(predicateFn); + result_25 = _(array).dropWhile(predicateFn, any); + result_25 = _(array).dropWhile(''); + result_25 = _(array).dropWhile('', any); + result_25 = _(array).dropWhile({ a: 42 }); + result_25 = _(list).dropWhile(); + result_25 = _(list).dropWhile(predicateFn); + result_25 = _(list).dropWhile(predicateFn, any); + result_25 = _(list).dropWhile(''); + result_25 = _(list).dropWhile('', any); + result_25 = _(list).dropWhile({ a: 42 }); + } + { + var result_26; + result_26 = _(array).chain().dropWhile(); + result_26 = _(array).chain().dropWhile(predicateFn); + result_26 = _(array).chain().dropWhile(predicateFn, any); + result_26 = _(array).chain().dropWhile(''); + result_26 = _(array).chain().dropWhile('', any); + result_26 = _(array).chain().dropWhile({ a: 42 }); + result_26 = _(list).chain().dropWhile(); + result_26 = _(list).chain().dropWhile(predicateFn); + result_26 = _(list).chain().dropWhile(predicateFn, any); + result_26 = _(list).chain().dropWhile(''); + result_26 = _(list).chain().dropWhile('', any); + result_26 = _(list).chain().dropWhile({ a: 42 }); + } +})(TestDropWhile || (TestDropWhile = {})); +// _.fill +var TestFill; +(function (TestFill) { + var array; + var list; + { + var result_27; + result_27 = _.fill(array, 42); + result_27 = _.fill(array, 42, 0); + result_27 = _.fill(array, 42, 0, 10); + } + { + var result_28; + result_28 = _.fill(list, 42); + result_28 = _.fill(list, 42, 0); + result_28 = _.fill(list, 42, 0, 10); + } + { + var result_29; + result_29 = _(array).fill(42); + result_29 = _(array).fill(42, 0); + result_29 = _(array).fill(42, 0, 10); + } + { + var result_30; + result_30 = _(list).fill(42); + result_30 = _(list).fill(42, 0); + result_30 = _(list).fill(42, 0, 10); + } + { + var result_31; + result_31 = _(array).chain().fill(42); + result_31 = _(array).chain().fill(42, 0); + result_31 = _(array).chain().fill(42, 0, 10); + } + { + var result_32; + result_32 = _(list).chain().fill(42); + result_32 = _(list).chain().fill(42, 0); + result_32 = _(list).chain().fill(42, 0, 10); + } +})(TestFill || (TestFill = {})); +// _.findIndex +var TestFindIndex; +(function (TestFindIndex) { + var array; + var list; + var predicateFn; + { + var result_33; + result_33 = _.findIndex(array); + result_33 = _.findIndex(array, predicateFn); + result_33 = _.findIndex(array, predicateFn, any); + result_33 = _.findIndex(array, ''); + result_33 = _.findIndex(array, '', any); + result_33 = _.findIndex(array, { a: 42 }); + result_33 = _.findIndex(list); + result_33 = _.findIndex(list, predicateFn); + result_33 = _.findIndex(list, predicateFn, any); + result_33 = _.findIndex(list, ''); + result_33 = _.findIndex(list, '', any); + result_33 = _.findIndex(list, { a: 42 }); + result_33 = _(array).findIndex(); + result_33 = _(array).findIndex(predicateFn); + result_33 = _(array).findIndex(predicateFn, any); + result_33 = _(array).findIndex(''); + result_33 = _(array).findIndex('', any); + result_33 = _(array).findIndex({ a: 42 }); + result_33 = _(list).findIndex(); + result_33 = _(list).findIndex(predicateFn); + result_33 = _(list).findIndex(predicateFn, any); + result_33 = _(list).findIndex(''); + result_33 = _(list).findIndex('', any); + result_33 = _(list).findIndex({ a: 42 }); + } + { + var result_34; + result_34 = _(array).chain().findIndex(); + result_34 = _(array).chain().findIndex(predicateFn); + result_34 = _(array).chain().findIndex(predicateFn, any); + result_34 = _(array).chain().findIndex(''); + result_34 = _(array).chain().findIndex('', any); + result_34 = _(array).chain().findIndex({ a: 42 }); + result_34 = _(list).chain().findIndex(); + result_34 = _(list).chain().findIndex(predicateFn); + result_34 = _(list).chain().findIndex(predicateFn, any); + result_34 = _(list).chain().findIndex(''); + result_34 = _(list).chain().findIndex('', any); + result_34 = _(list).chain().findIndex({ a: 42 }); + } +})(TestFindIndex || (TestFindIndex = {})); +// _.findLastIndex +var TestFindLastIndex; +(function (TestFindLastIndex) { + var array; + var list; + var predicateFn; + { + var result_35; + result_35 = _.findLastIndex(array); + result_35 = _.findLastIndex(array, predicateFn); + result_35 = _.findLastIndex(array, predicateFn, any); + result_35 = _.findLastIndex(array, ''); + result_35 = _.findLastIndex(array, '', any); + result_35 = _.findLastIndex(array, { a: 42 }); + result_35 = _.findLastIndex(list); + result_35 = _.findLastIndex(list, predicateFn); + result_35 = _.findLastIndex(list, predicateFn, any); + result_35 = _.findLastIndex(list, ''); + result_35 = _.findLastIndex(list, '', any); + result_35 = _.findLastIndex(list, { a: 42 }); + result_35 = _(array).findLastIndex(); + result_35 = _(array).findLastIndex(predicateFn); + result_35 = _(array).findLastIndex(predicateFn, any); + result_35 = _(array).findLastIndex(''); + result_35 = _(array).findLastIndex('', any); + result_35 = _(array).findLastIndex({ a: 42 }); + result_35 = _(list).findLastIndex(); + result_35 = _(list).findLastIndex(predicateFn); + result_35 = _(list).findLastIndex(predicateFn, any); + result_35 = _(list).findLastIndex(''); + result_35 = _(list).findLastIndex('', any); + result_35 = _(list).findLastIndex({ a: 42 }); + } + { + var result_36; + result_36 = _(array).chain().findLastIndex(); + result_36 = _(array).chain().findLastIndex(predicateFn); + result_36 = _(array).chain().findLastIndex(predicateFn, any); + result_36 = _(array).chain().findLastIndex(''); + result_36 = _(array).chain().findLastIndex('', any); + result_36 = _(array).chain().findLastIndex({ a: 42 }); + result_36 = _(list).chain().findLastIndex(); + result_36 = _(list).chain().findLastIndex(predicateFn); + result_36 = _(list).chain().findLastIndex(predicateFn, any); + result_36 = _(list).chain().findLastIndex(''); + result_36 = _(list).chain().findLastIndex('', any); + result_36 = _(list).chain().findLastIndex({ a: 42 }); + } +})(TestFindLastIndex || (TestFindLastIndex = {})); +// _.first +var TestFirst; +(function (TestFirst) { + var array; + var list; + var result; + result = _.first(array); + result = _.first(list); + result = _(array).first(); + result = _(list).first(); +})(TestFirst || (TestFirst = {})); +// _.flatten +var TestFlatten; +(function (TestFlatten) { + { + var result_37; + result_37 = _.flatten('abc'); + } + { + var result_38; + result_38 = _.flatten([1, 2, 3]); + result_38 = _.flatten([1, [2, 3]]); + result_38 = _.flatten([1, [2, [3]]], true); + result_38 = _.flatten([1, [2, [3]], [[4]]], true); + result_38 = _.flatten({ 0: 1, 1: 2, 2: 3, length: 3 }); + result_38 = _.flatten({ 0: 1, 1: [2, 3], length: 2 }); + result_38 = _.flatten({ 0: 1, 1: [2, [3]], length: 2 }, true); + result_38 = _.flatten({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }, true); + } + { + var result_39; + result_39 = _.flatten([1, [2, [3]]]); + result_39 = _.flatten([1, [2, [3]], [[4]]]); + result_39 = _.flatten({ 0: 1, 1: [2, [3]], length: 2 }); + result_39 = _.flatten({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }); + } + { + var result_40; + result_40 = _('abc').flatten(); + } + { + var result_41; + result_41 = _([1, 2, 3]).flatten(); + result_41 = _([1, [2, 3]]).flatten(); + result_41 = _([1, [2, [3]]]).flatten(true); + result_41 = _([1, [2, [3]], [[4]]]).flatten(true); + result_41 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).flatten(); + result_41 = _({ 0: 1, 1: [2, 3], length: 2 }).flatten(); + result_41 = _({ 0: 1, 1: [2, [3]], length: 2 }).flatten(true); + result_41 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flatten(true); + } + { + var result_42; + result_42 = _([1, [2, [3]]]).flatten(); + result_42 = _([1, [2, [3]], [[4]]]).flatten(); + result_42 = _({ 0: 1, 1: [2, [3]], length: 2 }).flatten(); + result_42 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flatten(); + } + { + var result_43; + result_43 = _('abc').chain().flatten(); + } + { + var result_44; + result_44 = _([1, 2, 3]).chain().flatten(); + result_44 = _([1, [2, 3]]).chain().flatten(); + result_44 = _([1, [2, [3]]]).chain().flatten(true); + result_44 = _([1, [2, [3]], [[4]]]).chain().flatten(true); + result_44 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).chain().flatten(); + result_44 = _({ 0: 1, 1: [2, 3], length: 2 }).chain().flatten(); + result_44 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flatten(true); + result_44 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flatten(true); + } + { + var result_45; + result_45 = _([1, [2, [3]]]).chain().flatten(); + result_45 = _([1, [2, [3]], [[4]]]).chain().flatten(); + result_45 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flatten(); + result_45 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flatten(); + } +})(TestFlatten || (TestFlatten = {})); +// _.flattenDeep +var TestFlattenDeep; +(function (TestFlattenDeep) { + { + var result_46; + result_46 = _.flattenDeep('abc'); + } + { + var result_47; + result_47 = _.flattenDeep([1, 2, 3]); + result_47 = _.flattenDeep([1, [2, 3]]); + result_47 = _.flattenDeep([1, [2, [3]]]); + result_47 = _.flattenDeep([1, [2, [3]], [[4]]]); + result_47 = _.flattenDeep({ 0: 1, 1: 2, 2: 3, length: 3 }); + result_47 = _.flattenDeep({ 0: 1, 1: [2, 3], length: 2 }); + result_47 = _.flattenDeep({ 0: 1, 1: [2, [3]], length: 2 }); + result_47 = _.flattenDeep({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }); + } + { + var result_48; + result_48 = _('abc').flattenDeep(); + } + { + var result_49; + result_49 = _([1, 2, 3]).flattenDeep(); + result_49 = _([1, [2, 3]]).flattenDeep(); + result_49 = _([1, [2, [3]]]).flattenDeep(); + result_49 = _([1, [2, [3]], [[4]]]).flattenDeep(); + result_49 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).flattenDeep(); + result_49 = _({ 0: 1, 1: [2, 3], length: 2 }).flattenDeep(); + result_49 = _({ 0: 1, 1: [2, [3]], length: 2 }).flattenDeep(); + result_49 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flattenDeep(); + } + { + var result_50; + result_50 = _([1, [2, [3]]]).flattenDeep(); + result_50 = _([1, [2, [3]], [[4]]]).flattenDeep(); + result_50 = _({ 0: 1, 1: [2, [3]], length: 2 }).flattenDeep(); + result_50 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flattenDeep(); + } + { + var result_51; + result_51 = _('abc').chain().flattenDeep(); + } + { + var result_52; + result_52 = _([1, 2, 3]).chain().flattenDeep(); + result_52 = _([1, [2, 3]]).chain().flattenDeep(); + result_52 = _([1, [2, [3]]]).chain().flattenDeep(); + result_52 = _([1, [2, [3]], [[4]]]).chain().flattenDeep(); + result_52 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).chain().flattenDeep(); + result_52 = _({ 0: 1, 1: [2, 3], length: 2 }).chain().flattenDeep(); + result_52 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flattenDeep(); + result_52 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flattenDeep(); + } + { + var result_53; + result_53 = _([1, [2, [3]]]).chain().flattenDeep(); + result_53 = _([1, [2, [3]], [[4]]]).chain().flattenDeep(); + result_53 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flattenDeep(); + result_53 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flattenDeep(); + } +})(TestFlattenDeep || (TestFlattenDeep = {})); +// _.head +var TestHead; +(function (TestHead) { + var array; + var list; + var result; + result = _.head(array); + result = _.head(list); + result = _(array).head(); + result = _(list).head(); +})(TestHead || (TestHead = {})); +// _.indexOf +var TestIndexOf; +(function (TestIndexOf) { + var array; + var list; + var value; + { + var result_54; + result_54 = _.indexOf(array, value); + result_54 = _.indexOf(array, value, true); + result_54 = _.indexOf(array, value, 42); + result_54 = _.indexOf(list, value); + result_54 = _.indexOf(list, value, true); + result_54 = _.indexOf(list, value, 42); + result_54 = _(array).indexOf(value); + result_54 = _(array).indexOf(value, true); + result_54 = _(array).indexOf(value, 42); + result_54 = _(list).indexOf(value); + result_54 = _(list).indexOf(value, true); + result_54 = _(list).indexOf(value, 42); + } + { + var result_55; + result_55 = _(array).chain().indexOf(value); + result_55 = _(array).chain().indexOf(value, true); + result_55 = _(array).chain().indexOf(value, 42); + result_55 = _(list).chain().indexOf(value); + result_55 = _(list).chain().indexOf(value, true); + result_55 = _(list).chain().indexOf(value, 42); + } +})(TestIndexOf || (TestIndexOf = {})); +// _.sortedIndexOf +var TestIndexOf; +(function (TestIndexOf) { + var array; + var list; + var value; + { + var result_56; + result_56 = _.sortedIndexOf(array, value); + result_56 = _.sortedIndexOf(list, value); + result_56 = _(array).sortedIndexOf(value); + result_56 = _(list).sortedIndexOf(value); + } + { + var result_57; + result_57 = _(array).chain().sortedIndexOf(value); + result_57 = _(list).chain().sortedIndexOf(value); + } +})(TestIndexOf || (TestIndexOf = {})); +//_.initial +var TestInitial; +(function (TestInitial) { + var array; + var list; + { + var result_58; + result_58 = _.initial(array); + result_58 = _.initial(list); + } + { + var result_59; + result_59 = _(array).initial(); + result_59 = _(list).initial(); + } + { + var result_60; + result_60 = _(array).chain().initial(); + result_60 = _(list).chain().initial(); + } +})(TestInitial || (TestInitial = {})); +// _.intersection +var TestIntersection; +(function (TestIntersection) { + var array; + var list; + { + var result_61; + result_61 = _.intersection(array, list); + result_61 = _.intersection(list, array, list); + } + { + var result_62; + result_62 = _(array).intersection(array); + result_62 = _(array).intersection(list, array); + result_62 = _(list).intersection(array); + result_62 = _(list).intersection(list, array); + } + { + var result_63; + result_63 = _(array).chain().intersection(array); + result_63 = _(array).chain().intersection(list, array); + result_63 = _(list).chain().intersection(array); + result_63 = _(list).chain().intersection(list, array); + } +})(TestIntersection || (TestIntersection = {})); +// _.last +var TestLast; +(function (TestLast) { + var array; + var list; + { + var result_64; + result_64 = _.last(array); + result_64 = _.last(list); + result_64 = _(array).last(); + result_64 = _(list).last(); + } + { + var result_65; + result_65 = _(array).chain().last(); + } + { + var result_66; + result_66 = _(list).chain().last(); + } +})(TestLast || (TestLast = {})); +// _.lastIndexOf +var TestLastIndexOf; +(function (TestLastIndexOf) { + var array; + var list; + var value; + { + var result_67; + result_67 = _.lastIndexOf(array, value); + result_67 = _.lastIndexOf(array, value, true); + result_67 = _.lastIndexOf(array, value, 42); + result_67 = _.lastIndexOf(list, value); + result_67 = _.lastIndexOf(list, value, true); + result_67 = _.lastIndexOf(list, value, 42); + result_67 = _(array).lastIndexOf(value); + result_67 = _(array).lastIndexOf(value, true); + result_67 = _(array).lastIndexOf(value, 42); + result_67 = _(list).lastIndexOf(value); + result_67 = _(list).lastIndexOf(value, true); + result_67 = _(list).lastIndexOf(value, 42); + } + { + var result_68; + result_68 = _(array).chain().lastIndexOf(value); + result_68 = _(array).chain().lastIndexOf(value, true); + result_68 = _(array).chain().lastIndexOf(value, 42); + result_68 = _(list).chain().lastIndexOf(value); + result_68 = _(list).chain().lastIndexOf(value, true); + result_68 = _(list).chain().lastIndexOf(value, 42); + } +})(TestLastIndexOf || (TestLastIndexOf = {})); +// _.pull +var TestPull; +(function (TestPull) { + var array; + var list; + var value; + { + var result_69; + result_69 = _.pull(array); + result_69 = _.pull(array, value); + result_69 = _.pull(array, value, value); + result_69 = _.pull(array, value, value, value); + } + { + var result_70; + result_70 = _.pull(list); + result_70 = _.pull(list, value); + result_70 = _.pull(list, value, value); + result_70 = _.pull(list, value, value, value); + } + { + var result_71; + result_71 = _(array).pull(); + result_71 = _(array).pull(value); + result_71 = _(array).pull(value, value); + result_71 = _(array).pull(value, value, value); + } + { + var result_72; + result_72 = _(list).pull(); + result_72 = _(list).pull(value); + result_72 = _(list).pull(value, value); + result_72 = _(list).pull(value, value, value); + } + { + var result_73; + result_73 = _(array).chain().pull(); + result_73 = _(array).chain().pull(value); + result_73 = _(array).chain().pull(value, value); + result_73 = _(array).chain().pull(value, value, value); + } + { + var result_74; + result_74 = _(list).chain().pull(); + result_74 = _(list).chain().pull(value); + result_74 = _(list).chain().pull(value, value); + result_74 = _(list).chain().pull(value, value, value); + } +})(TestPull || (TestPull = {})); +// _.pullAt +var TestPullAt; +(function (TestPullAt) { + var array; + var list; + { + var result_75; + result_75 = _.pullAt(array); + result_75 = _.pullAt(array, 1); + result_75 = _.pullAt(array, [2, 3], 1); + result_75 = _.pullAt(array, 4, [2, 3], 1); + result_75 = _.pullAt(list); + result_75 = _.pullAt(list, 1); + result_75 = _.pullAt(list, [2, 3], 1); + result_75 = _.pullAt(list, 4, [2, 3], 1); + } + { + var result_76; + result_76 = _(array).pullAt(); + result_76 = _(array).pullAt(1); + result_76 = _(array).pullAt([2, 3], 1); + result_76 = _(array).pullAt(4, [2, 3], 1); + result_76 = _(list).pullAt(); + result_76 = _(list).pullAt(1); + result_76 = _(list).pullAt([2, 3], 1); + result_76 = _(list).pullAt(4, [2, 3], 1); + } + { + var result_77; + result_77 = _(array).chain().pullAt(); + result_77 = _(array).chain().pullAt(1); + result_77 = _(array).chain().pullAt([2, 3], 1); + result_77 = _(array).chain().pullAt(4, [2, 3], 1); + result_77 = _(list).chain().pullAt(); + result_77 = _(list).chain().pullAt(1); + result_77 = _(list).chain().pullAt([2, 3], 1); + result_77 = _(list).chain().pullAt(4, [2, 3], 1); + } +})(TestPullAt || (TestPullAt = {})); +// _.remove +var TestRemove; +(function (TestRemove) { + var array; + var list; + var predicateFn; + { + var result_78; + result_78 = _.remove(array); + result_78 = _.remove(array, predicateFn); + result_78 = _.remove(array, predicateFn, any); + result_78 = _.remove(array, ''); + result_78 = _.remove(array, '', any); + result_78 = _.remove(array, { a: 42 }); + result_78 = _.remove(list); + result_78 = _.remove(list, predicateFn); + result_78 = _.remove(list, predicateFn, any); + result_78 = _.remove(list, ''); + result_78 = _.remove(list, '', any); + result_78 = _.remove(list, { a: 42 }); + } + { + var result_79; + result_79 = _(array).remove(); + result_79 = _(array).remove(predicateFn); + result_79 = _(array).remove(predicateFn, any); + result_79 = _(array).remove(''); + result_79 = _(array).remove('', any); + result_79 = _(array).remove({ a: 42 }); + result_79 = _(list).remove(); + result_79 = _(list).remove(predicateFn); + result_79 = _(list).remove(predicateFn, any); + result_79 = _(list).remove(''); + result_79 = _(list).remove('', any); + result_79 = _(list).remove({ a: 42 }); + } + { + var result_80; + result_80 = _(array).chain().remove(); + result_80 = _(array).chain().remove(predicateFn); + result_80 = _(array).chain().remove(predicateFn, any); + result_80 = _(array).chain().remove(''); + result_80 = _(array).chain().remove('', any); + result_80 = _(array).chain().remove({ a: 42 }); + result_80 = _(list).chain().remove(); + result_80 = _(list).chain().remove(predicateFn); + result_80 = _(list).chain().remove(predicateFn, any); + result_80 = _(list).chain().remove(''); + result_80 = _(list).chain().remove('', any); + result_80 = _(list).chain().remove({ a: 42 }); + } +})(TestRemove || (TestRemove = {})); +// _.tail +var TestTail; +(function (TestTail) { + var array; + var list; + { + var result_81; + result_81 = _.tail(array); + result_81 = _.tail(list); + } + { + var result_82; + result_82 = _(array).tail(); + result_82 = _(list).tail(); + } + { + var result_83; + result_83 = _(array).chain().tail(); + result_83 = _(list).chain().tail(); + } +})(TestTail || (TestTail = {})); +// _.slice +var TestSlice; +(function (TestSlice) { + var array; + { + var result_84; + result_84 = _.slice(array); + result_84 = _.slice(array, 42); + result_84 = _.slice(array, 42, 42); + } + { + var result_85; + result_85 = _(array).slice(); + result_85 = _(array).slice(42); + result_85 = _(array).slice(42, 42); + } + { + var result_86; + result_86 = _(array).chain().slice(); + result_86 = _(array).chain().slice(42); + result_86 = _(array).chain().slice(42, 42); + } +})(TestSlice || (TestSlice = {})); +// _.sortedIndex +var TestSortedIndex; +(function (TestSortedIndex) { + var array; + var list; + var value; + var stringIterator; + var arrayIterator; + var listIterator; + { + var result_87; + result_87 = _.sortedIndex('', ''); + result_87 = _.sortedIndex(array, value); + result_87 = _.sortedIndex(list, value); + result_87 = _('').sortedIndex(''); + result_87 = _(array).sortedIndex(value); + result_87 = _(list).sortedIndex(value); + } + { + var result_88; + result_88 = _('').chain().sortedIndex(''); + result_88 = _(array).chain().sortedIndex(value); + result_88 = _(list).chain().sortedIndex(value); + } +})(TestSortedIndex || (TestSortedIndex = {})); +// _.sortedIndexBy +var TestSortedIndexBy; +(function (TestSortedIndexBy) { + var array; + var list; + var value; + var stringIterator; + var arrayIterator; + var listIterator; + { + var result_89; + result_89 = _.sortedIndexBy('', '', stringIterator); + result_89 = _.sortedIndexBy('', '', stringIterator); + result_89 = _.sortedIndexBy(array, value, arrayIterator); + result_89 = _.sortedIndexBy(array, value, ''); + result_89 = _.sortedIndexBy(array, value, { a: 42 }); + result_89 = _.sortedIndexBy(array, value, arrayIterator); + result_89 = _.sortedIndexBy(array, value, { a: 42 }); + result_89 = _.sortedIndexBy(list, value, listIterator); + result_89 = _.sortedIndexBy(list, value, ''); + result_89 = _.sortedIndexBy(list, value, { a: 42 }); + result_89 = _.sortedIndexBy(list, value, listIterator); + result_89 = _.sortedIndexBy(list, value, { a: 42 }); + result_89 = _('').sortedIndexBy('', stringIterator); + result_89 = _(array).sortedIndexBy(value, arrayIterator); + result_89 = _(array).sortedIndexBy(value, ''); + result_89 = _(array).sortedIndexBy(value, { a: 42 }); + result_89 = _(list).sortedIndexBy(value, listIterator); + result_89 = _(list).sortedIndexBy(value, ''); + result_89 = _(list).sortedIndexBy(value, { a: 42 }); + result_89 = _(list).sortedIndexBy(value, listIterator); + result_89 = _(list).sortedIndexBy(value, { a: 42 }); + } + { + var result_90; + result_90 = _('').chain().sortedIndexBy('', stringIterator); + result_90 = _(array).chain().sortedIndexBy(value, arrayIterator); + result_90 = _(array).chain().sortedIndexBy(value, ''); + result_90 = _(array).chain().sortedIndexBy(value, { a: 42 }); + result_90 = _(list).chain().sortedIndexBy(value, listIterator); + result_90 = _(list).chain().sortedIndexBy(value, ''); + result_90 = _(list).chain().sortedIndexBy(value, { a: 42 }); + result_90 = _(list).chain().sortedIndexBy(value, listIterator); + result_90 = _(list).chain().sortedIndexBy(value, { a: 42 }); + } +})(TestSortedIndexBy || (TestSortedIndexBy = {})); +// _.sortedLastIndex +var TestSortedLastIndex; +(function (TestSortedLastIndex) { + var array; + var list; + var value; + var stringIterator; + var arrayIterator; + var listIterator; + { + var result_91; + result_91 = _.sortedLastIndex('', ''); + result_91 = _.sortedLastIndex(array, value); + result_91 = _.sortedLastIndex(list, value); + result_91 = _('').sortedLastIndex(''); + result_91 = _(array).sortedLastIndex(value); + result_91 = _(list).sortedLastIndex(value); + } + { + var result_92; + result_92 = _('').chain().sortedLastIndex(''); + result_92 = _(array).chain().sortedLastIndex(value); + result_92 = _(list).chain().sortedLastIndex(value); + } +})(TestSortedLastIndex || (TestSortedLastIndex = {})); +// _.sortedLastIndexBy +var TestSortedLastIndexBy; +(function (TestSortedLastIndexBy) { + var array; + var list; + var value; + var stringIterator; + var arrayIterator; + var listIterator; + { + var result_93; + result_93 = _.sortedLastIndexBy('', '', stringIterator); + result_93 = _.sortedLastIndexBy('', '', stringIterator); + result_93 = _.sortedLastIndexBy(array, value, arrayIterator); + result_93 = _.sortedLastIndexBy(array, value, ''); + result_93 = _.sortedLastIndexBy(array, value, { a: 42 }); + result_93 = _.sortedLastIndexBy(array, value, arrayIterator); + result_93 = _.sortedLastIndexBy(array, value, { a: 42 }); + result_93 = _.sortedLastIndexBy(list, value, listIterator); + result_93 = _.sortedLastIndexBy(list, value, ''); + result_93 = _.sortedLastIndexBy(list, value, { a: 42 }); + result_93 = _.sortedLastIndexBy(list, value, listIterator); + result_93 = _.sortedLastIndexBy(list, value, { a: 42 }); + result_93 = _('').sortedLastIndexBy('', stringIterator); + result_93 = _(array).sortedLastIndexBy(value, arrayIterator); + result_93 = _(array).sortedLastIndexBy(value, ''); + result_93 = _(array).sortedLastIndexBy(value, { a: 42 }); + result_93 = _(list).sortedLastIndexBy(value, listIterator); + result_93 = _(list).sortedLastIndexBy(value, ''); + result_93 = _(list).sortedLastIndexBy(value, { a: 42 }); + result_93 = _(list).sortedLastIndexBy(value, listIterator); + result_93 = _(list).sortedLastIndexBy(value, { a: 42 }); + } + { + var result_94; + result_94 = _('').chain().sortedLastIndexBy('', stringIterator); + result_94 = _(array).chain().sortedLastIndexBy(value, arrayIterator); + result_94 = _(array).chain().sortedLastIndexBy(value, ''); + result_94 = _(array).chain().sortedLastIndexBy(value, { a: 42 }); + result_94 = _(list).chain().sortedLastIndexBy(value, listIterator); + result_94 = _(list).chain().sortedLastIndexBy(value, ''); + result_94 = _(list).chain().sortedLastIndexBy(value, { a: 42 }); + result_94 = _(list).chain().sortedLastIndexBy(value, listIterator); + result_94 = _(list).chain().sortedLastIndexBy(value, { a: 42 }); + } +})(TestSortedLastIndexBy || (TestSortedLastIndexBy = {})); +// _.tail +var TestTail; +(function (TestTail) { + var array; + var list; + { + var result_95; + result_95 = _.tail(array); + result_95 = _.tail(list); + } + { + var result_96; + result_96 = _(array).tail(); + result_96 = _(list).tail(); + } + { + var result_97; + result_97 = _(array).chain().tail(); + result_97 = _(list).chain().tail(); + } +})(TestTail || (TestTail = {})); +// _.take +var TestTake; +(function (TestTake) { + var array; + var list; + { + var result_98; + result_98 = _.take(array); + result_98 = _.take(array, 42); + result_98 = _.take(list); + result_98 = _.take(list, 42); + } + { + var result_99; + result_99 = _(array).take(); + result_99 = _(array).take(42); + result_99 = _(list).take(); + result_99 = _(list).take(42); + } + { + var result_100; + result_100 = _(array).chain().take(); + result_100 = _(array).chain().take(42); + result_100 = _(list).chain().take(); + result_100 = _(list).chain().take(42); + } +})(TestTake || (TestTake = {})); +// _.takeRight +var TestTakeRight; +(function (TestTakeRight) { + var array; + var list; + { + var result_101; + result_101 = _.takeRight(array); + result_101 = _.takeRight(array, 42); + result_101 = _.takeRight(list); + result_101 = _.takeRight(list, 42); + } + { + var result_102; + result_102 = _(array).takeRight(); + result_102 = _(array).takeRight(42); + result_102 = _(list).takeRight(); + result_102 = _(list).takeRight(42); + } + { + var result_103; + result_103 = _(array).chain().takeRight(); + result_103 = _(array).chain().takeRight(42); + result_103 = _(list).chain().takeRight(); + result_103 = _(list).chain().takeRight(42); + } +})(TestTakeRight || (TestTakeRight = {})); +// _.takeRightWhile +var TestTakeRightWhile; +(function (TestTakeRightWhile) { + var array; + var list; + var predicateFn; + { + var result_104; + result_104 = _.takeRightWhile(array); + result_104 = _.takeRightWhile(array, predicateFn); + result_104 = _.takeRightWhile(array, predicateFn, any); + result_104 = _.takeRightWhile(array, ''); + result_104 = _.takeRightWhile(array, '', any); + result_104 = _.takeRightWhile(array, { a: 42 }); + result_104 = _.takeRightWhile(list); + result_104 = _.takeRightWhile(list, predicateFn); + result_104 = _.takeRightWhile(list, predicateFn, any); + result_104 = _.takeRightWhile(list, ''); + result_104 = _.takeRightWhile(list, '', any); + result_104 = _.takeRightWhile(list, { a: 42 }); + } + { + var result_105; + result_105 = _(array).takeRightWhile(); + result_105 = _(array).takeRightWhile(predicateFn); + result_105 = _(array).takeRightWhile(predicateFn, any); + result_105 = _(array).takeRightWhile(''); + result_105 = _(array).takeRightWhile('', any); + result_105 = _(array).takeRightWhile({ a: 42 }); + result_105 = _(list).takeRightWhile(); + result_105 = _(list).takeRightWhile(predicateFn); + result_105 = _(list).takeRightWhile(predicateFn, any); + result_105 = _(list).takeRightWhile(''); + result_105 = _(list).takeRightWhile('', any); + result_105 = _(list).takeRightWhile({ a: 42 }); + } + { + var result_106; + result_106 = _(array).chain().takeRightWhile(); + result_106 = _(array).chain().takeRightWhile(predicateFn); + result_106 = _(array).chain().takeRightWhile(predicateFn, any); + result_106 = _(array).chain().takeRightWhile(''); + result_106 = _(array).chain().takeRightWhile('', any); + result_106 = _(array).chain().takeRightWhile({ a: 42 }); + result_106 = _(list).chain().takeRightWhile(); + result_106 = _(list).chain().takeRightWhile(predicateFn); + result_106 = _(list).chain().takeRightWhile(predicateFn, any); + result_106 = _(list).chain().takeRightWhile(''); + result_106 = _(list).chain().takeRightWhile('', any); + result_106 = _(list).chain().takeRightWhile({ a: 42 }); + } +})(TestTakeRightWhile || (TestTakeRightWhile = {})); +// _.takeWhile +var TestTakeWhile; +(function (TestTakeWhile) { + var array; + var list; + var predicateFn; + { + var result_107; + result_107 = _.takeWhile(array); + result_107 = _.takeWhile(array, predicateFn); + result_107 = _.takeWhile(array, predicateFn, any); + result_107 = _.takeWhile(array, ''); + result_107 = _.takeWhile(array, '', any); + result_107 = _.takeWhile(array, { a: 42 }); + result_107 = _.takeWhile(list); + result_107 = _.takeWhile(list, predicateFn); + result_107 = _.takeWhile(list, predicateFn, any); + result_107 = _.takeWhile(list, ''); + result_107 = _.takeWhile(list, '', any); + result_107 = _.takeWhile(list, { a: 42 }); + } + { + var result_108; + result_108 = _(array).takeWhile(); + result_108 = _(array).takeWhile(predicateFn); + result_108 = _(array).takeWhile(predicateFn, any); + result_108 = _(array).takeWhile(''); + result_108 = _(array).takeWhile('', any); + result_108 = _(array).takeWhile({ a: 42 }); + result_108 = _(list).takeWhile(); + result_108 = _(list).takeWhile(predicateFn); + result_108 = _(list).takeWhile(predicateFn, any); + result_108 = _(list).takeWhile(''); + result_108 = _(list).takeWhile('', any); + result_108 = _(list).takeWhile({ a: 42 }); + } + { + var result_109; + result_109 = _(array).chain().takeWhile(); + result_109 = _(array).chain().takeWhile(predicateFn); + result_109 = _(array).chain().takeWhile(predicateFn, any); + result_109 = _(array).chain().takeWhile(''); + result_109 = _(array).chain().takeWhile('', any); + result_109 = _(array).chain().takeWhile({ a: 42 }); + result_109 = _(list).chain().takeWhile(); + result_109 = _(list).chain().takeWhile(predicateFn); + result_109 = _(list).chain().takeWhile(predicateFn, any); + result_109 = _(list).chain().takeWhile(''); + result_109 = _(list).chain().takeWhile('', any); + result_109 = _(list).chain().takeWhile({ a: 42 }); + } +})(TestTakeWhile || (TestTakeWhile = {})); +// _.union +var TestUnion; +(function (TestUnion) { + var array; + var list; + { + var result_110; + result_110 = _.union(); + result_110 = _.union(array); + result_110 = _.union(array, list); + result_110 = _.union(array, list, array); + result_110 = _.union(list); + result_110 = _.union(list, array); + result_110 = _.union(list, array, list); + } + { + var result_111; + result_111 = _(array).union(); + result_111 = _(array).union(list); + result_111 = _(array).union(list, array); + result_111 = _(array).union(); + result_111 = _(array).union(list); + result_111 = _(array).union(list, array); + result_111 = _(list).union(); + result_111 = _(list).union(array); + result_111 = _(list).union(array, list); + } + { + var result_112; + result_112 = _(array).chain().union(); + result_112 = _(array).chain().union(list); + result_112 = _(array).chain().union(list, array); + result_112 = _(array).chain().union(); + result_112 = _(array).chain().union(list); + result_112 = _(array).chain().union(list, array); + result_112 = _(list).chain().union(); + result_112 = _(list).chain().union(array); + result_112 = _(list).chain().union(array, list); + } +})(TestUnion || (TestUnion = {})); +// _.uniq +var TestUniq; +(function (TestUniq) { + var array; + var list; + var stringIterator; + var listIterator; + { + var result_113; + result_113 = _.uniq('abc'); + } + { + var result_114; + result_114 = _.uniq(array); + result_114 = _.uniq(list); + } + { + var result_115; + result_115 = _('abc').uniq(); + } + { + var result_116; + result_116 = _(array).uniq(); + result_116 = _(list).uniq(); + } + { + var result_117; + result_117 = _('abc').chain().uniq(); + } + { + var result_118; + result_118 = _(array).chain().uniq(); + result_118 = _(list).chain().uniq(); + } +})(TestUniq || (TestUniq = {})); +// _.uniqBy +var TestUniqBy; +(function (TestUniqBy) { + var array; + var list; + var stringIterator; + var listIterator; + { + var result_119; + result_119 = _.uniqBy('abc', stringIterator); + result_119 = _.uniqBy('abc', stringIterator); + } + { + var result_120; + result_120 = _.uniqBy(array, listIterator); + result_120 = _.uniqBy(array, listIterator); + result_120 = _.uniqBy(array, 'a'); + result_120 = _.uniqBy(array, { a: 42 }); + result_120 = _.uniqBy(array, { a: 42 }); + result_120 = _.uniqBy(list, listIterator); + result_120 = _.uniqBy(list, listIterator); + result_120 = _.uniqBy(list, 'a'); + result_120 = _.uniqBy(list, { a: 42 }); + result_120 = _.uniqBy(list, { a: 42 }); + } + { + var result_121; + result_121 = _('abc').uniqBy(stringIterator); + } + { + var result_122; + result_122 = _(array).uniqBy(listIterator); + result_122 = _(array).uniqBy('a'); + result_122 = _(array).uniqBy({ a: 42 }); + result_122 = _(list).uniqBy(listIterator); + result_122 = _(list).uniqBy(listIterator); + result_122 = _(list).uniqBy('a'); + result_122 = _(list).uniqBy({ a: 42 }); + result_122 = _(list).uniqBy({ a: 42 }); + } + { + var result_123; + result_123 = _('abc').chain().uniqBy(stringIterator); + } + { + var result_124; + result_124 = _(array).chain().uniqBy(listIterator); + result_124 = _(array).chain().uniqBy('a'); + result_124 = _(array).chain().uniqBy({ a: 42 }); + result_124 = _(list).chain().uniqBy(listIterator); + result_124 = _(list).chain().uniqBy(listIterator); + result_124 = _(list).chain().uniqBy('a'); + result_124 = _(list).chain().uniqBy({ a: 42 }); + result_124 = _(list).chain().uniqBy({ a: 42 }); + } +})(TestUniqBy || (TestUniqBy = {})); +// _.sortedUniq +var TestSortedUniq; +(function (TestSortedUniq) { + var array; + var list; + var stringIterator; + var listIterator; + { + var result_125; + result_125 = _.sortedUniq('abc'); + } + { + var result_126; + result_126 = _.sortedUniq(array); + result_126 = _.sortedUniq(list); + } + { + var result_127; + result_127 = _('abc').sortedUniq(); + } + { + var result_128; + result_128 = _(array).sortedUniq(); + result_128 = _(list).sortedUniq(); + } + { + var result_129; + result_129 = _('abc').chain().sortedUniq(); + } + { + var result_130; + result_130 = _(array).chain().sortedUniq(); + result_130 = _(list).chain().sortedUniq(); + } +})(TestSortedUniq || (TestSortedUniq = {})); +// _.sortedUniqBy +var TestSortedUniqBy; +(function (TestSortedUniqBy) { + var array; + var list; + var stringIterator; + var listIterator; + { + var result_131; + result_131 = _.sortedUniqBy('abc', stringIterator); + result_131 = _.sortedUniqBy('abc', stringIterator); + } + { + var result_132; + result_132 = _.sortedUniqBy(array, listIterator); + result_132 = _.sortedUniqBy(array, listIterator); + result_132 = _.sortedUniqBy(array, 'a'); + result_132 = _.sortedUniqBy(array, { a: 42 }); + result_132 = _.sortedUniqBy(array, { a: 42 }); + result_132 = _.sortedUniqBy(list, listIterator); + result_132 = _.sortedUniqBy(list, listIterator); + result_132 = _.sortedUniqBy(list, 'a'); + result_132 = _.sortedUniqBy(list, { a: 42 }); + result_132 = _.sortedUniqBy(list, { a: 42 }); + } + { + var result_133; + result_133 = _('abc').sortedUniqBy(stringIterator); + } + { + var result_134; + result_134 = _(array).sortedUniqBy(listIterator); + result_134 = _(array).sortedUniqBy('a'); + result_134 = _(array).sortedUniqBy({ a: 42 }); + result_134 = _(list).sortedUniqBy(listIterator); + result_134 = _(list).sortedUniqBy(listIterator); + result_134 = _(list).sortedUniqBy('a'); + result_134 = _(list).sortedUniqBy({ a: 42 }); + result_134 = _(list).sortedUniqBy({ a: 42 }); + } + { + var result_135; + result_135 = _('abc').chain().sortedUniqBy(stringIterator); + } + { + var result_136; + result_136 = _(array).chain().sortedUniqBy(listIterator); + result_136 = _(array).chain().sortedUniqBy('a'); + result_136 = _(array).chain().sortedUniqBy({ a: 42 }); + result_136 = _(list).chain().sortedUniqBy(listIterator); + result_136 = _(list).chain().sortedUniqBy(listIterator); + result_136 = _(list).chain().sortedUniqBy('a'); + result_136 = _(list).chain().sortedUniqBy({ a: 42 }); + result_136 = _(list).chain().sortedUniqBy({ a: 42 }); + } +})(TestSortedUniqBy || (TestSortedUniqBy = {})); +// _.upzip +var TestUnzip; +(function (TestUnzip) { + var array = [['a', 'b'], [1, 2], [true, false]]; + var list = { + 0: { 0: 'a', 1: 'b', length: 2 }, + 1: { 0: 1, 1: 2, length: 2 }, + 2: { 0: true, 1: false, length: 2 }, + length: 3 + }; + { + var result_137; + result_137 = _.unzip(array); + result_137 = _.unzip(list); + } + { + var result_138; + result_138 = _(array).unzip(); + result_138 = _(list).unzip(); + } + { + var result_139; + result_139 = _(array).chain().unzip(); + result_139 = _(list).chain().unzip(); + } +})(TestUnzip || (TestUnzip = {})); +// _.unzipWith +{ + var testUnzipWithArray; + var testUnzipWithList; + var testUnzipWithIterator; + var result_140; + result_140 = _.unzipWith(testUnzipWithArray); + result_140 = _.unzipWith(testUnzipWithArray, testUnzipWithIterator); + result_140 = _.unzipWith(testUnzipWithArray, testUnzipWithIterator, any); + result_140 = _.unzipWith(testUnzipWithList); + result_140 = _.unzipWith(testUnzipWithList, testUnzipWithIterator); + result_140 = _.unzipWith(testUnzipWithList, testUnzipWithIterator, any); + result_140 = _(testUnzipWithArray).unzipWith(testUnzipWithIterator).value(); + result_140 = _(testUnzipWithArray).unzipWith(testUnzipWithIterator, any).value(); + result_140 = _(testUnzipWithList).unzipWith(testUnzipWithIterator).value(); + result_140 = _(testUnzipWithList).unzipWith(testUnzipWithIterator, any).value(); +} +// _.without +var TestWithout; +(function (TestWithout) { + var array; + var list; + { + var result_141; + result_141 = _.without(array); + result_141 = _.without(array, 1); + result_141 = _.without(array, 1, 2); + result_141 = _.without(array, 1, 2, 3); + result_141 = _.without(list); + result_141 = _.without(list, 1); + result_141 = _.without(list, 1, 2); + result_141 = _.without(list, 1, 2, 3); + } + { + var result_142; + result_142 = _(array).without(); + result_142 = _(array).without(1); + result_142 = _(array).without(1, 2); + result_142 = _(array).without(1, 2, 3); + result_142 = _(list).without(); + result_142 = _(list).without(1); + result_142 = _(list).without(1, 2); + result_142 = _(list).without(1, 2, 3); + } + { + var result_143; + result_143 = _(array).chain().without(); + result_143 = _(array).chain().without(1); + result_143 = _(array).chain().without(1, 2); + result_143 = _(array).chain().without(1, 2, 3); + result_143 = _(list).chain().without(); + result_143 = _(list).chain().without(1); + result_143 = _(list).chain().without(1, 2); + result_143 = _(list).chain().without(1, 2, 3); + } +})(TestWithout || (TestWithout = {})); +// _.xor +var TestXor; +(function (TestXor) { + var array; + var list; + { + var result_144; + result_144 = _.xor(); + result_144 = _.xor(array); + result_144 = _.xor(array, list); + result_144 = _.xor(array, list, array); + result_144 = _.xor(list); + result_144 = _.xor(list, array); + result_144 = _.xor(list, array, list); + } + { + var result_145; + result_145 = _(array).xor(); + result_145 = _(array).xor(list); + result_145 = _(array).xor(list, array); + result_145 = _(list).xor(); + result_145 = _(list).xor(array); + result_145 = _(list).xor(array, list); + } + { + var result_146; + result_146 = _(array).chain().xor(); + result_146 = _(array).chain().xor(list); + result_146 = _(array).chain().xor(list, array); + result_146 = _(list).chain().xor(); + result_146 = _(list).chain().xor(array); + result_146 = _(list).chain().xor(array, list); + } +})(TestXor || (TestXor = {})); +// _.zip +var TestZip; +(function (TestZip) { + var array; + var list; + { + var result_147; + result_147 = _.zip(array); + result_147 = _.zip(array, list); + result_147 = _.zip(array, list, array); + result_147 = _.zip(list); + result_147 = _.zip(list, array); + result_147 = _.zip(list, array, list); + } + { + var result_148; + result_148 = _(array).zip(list); + result_148 = _(array).zip(list, array); + result_148 = _(list).zip(array); + result_148 = _(list).zip(array, list); + } + { + var result_149; + result_149 = _(array).chain().zip(list); + result_149 = _(array).chain().zip(list, array); + result_149 = _(list).chain().zip(array); + result_149 = _(list).chain().zip(array, list); + } +})(TestZip || (TestZip = {})); +// _.zipObject +var TestZipObject; +(function (TestZipObject) { + var arrayOfKeys; + var arrayOfValues; + var arrayOfKeyValuePairs; + var listOfKeys; + var listOfValues; + var listOfKeyValuePairs; + { + var result_150; + result_150 = _.zipObject(arrayOfKeys); + result_150 = _.zipObject(listOfKeys); + } + { + var result_151; + result_151 = _.zipObject(arrayOfKeys, arrayOfValues); + result_151 = _.zipObject(arrayOfKeys, listOfValues); + result_151 = _.zipObject(listOfKeys, listOfValues); + result_151 = _.zipObject(listOfKeys, arrayOfValues); + result_151 = _.zipObject(arrayOfKeys, arrayOfValues); + result_151 = _.zipObject(arrayOfKeys, listOfValues); + result_151 = _.zipObject(listOfKeys, listOfValues); + result_151 = _.zipObject(listOfKeys, arrayOfValues); + result_151 = _.zipObject(arrayOfKeyValuePairs); + result_151 = _.zipObject(listOfKeyValuePairs); + } + { + var result_152; + result_152 = _.zipObject(arrayOfKeys); + result_152 = _.zipObject(arrayOfKeys, arrayOfValues); + result_152 = _.zipObject(arrayOfKeys, listOfValues); + result_152 = _.zipObject(listOfKeys); + result_152 = _.zipObject(listOfKeys, listOfValues); + result_152 = _.zipObject(listOfKeys, arrayOfValues); + result_152 = _.zipObject(arrayOfKeyValuePairs); + result_152 = _.zipObject(listOfKeyValuePairs); + } + { + var result_153; + result_153 = _(arrayOfKeys).zipObject(); + result_153 = _(listOfKeys).zipObject(); + } + { + var result_154; + result_154 = _(arrayOfKeys).zipObject(arrayOfValues); + result_154 = _(arrayOfKeys).zipObject(listOfValues); + result_154 = _(listOfKeys).zipObject(listOfValues); + result_154 = _(listOfKeys).zipObject(arrayOfValues); + result_154 = _(arrayOfKeys).zipObject(arrayOfValues); + result_154 = _(arrayOfKeys).zipObject(listOfValues); + result_154 = _(listOfKeys).zipObject(listOfValues); + result_154 = _(listOfKeys).zipObject(arrayOfValues); + result_154 = _(listOfKeys).zipObject(arrayOfKeyValuePairs); + result_154 = _(listOfKeys).zipObject(listOfKeyValuePairs); + } + { + var result_155; + result_155 = _(arrayOfKeys).zipObject(); + result_155 = _(arrayOfKeys).zipObject(arrayOfValues); + result_155 = _(arrayOfKeys).zipObject(listOfValues); + result_155 = _(listOfKeys).zipObject(); + result_155 = _(listOfKeys).zipObject(listOfValues); + result_155 = _(listOfKeys).zipObject(arrayOfValues); + result_155 = _(listOfKeys).zipObject(arrayOfKeyValuePairs); + result_155 = _(listOfKeys).zipObject(listOfKeyValuePairs); + } + { + var result_156; + result_156 = _(arrayOfKeys).chain().zipObject(); + result_156 = _(listOfKeys).chain().zipObject(); + } + { + var result_157; + result_157 = _(arrayOfKeys).chain().zipObject(arrayOfValues); + result_157 = _(arrayOfKeys).chain().zipObject(listOfValues); + result_157 = _(listOfKeys).chain().zipObject(listOfValues); + result_157 = _(listOfKeys).chain().zipObject(arrayOfValues); + result_157 = _(arrayOfKeys).chain().zipObject(arrayOfValues); + result_157 = _(arrayOfKeys).chain().zipObject(listOfValues); + result_157 = _(listOfKeys).chain().zipObject(listOfValues); + result_157 = _(listOfKeys).chain().zipObject(arrayOfValues); + result_157 = _(listOfKeys).chain().zipObject(arrayOfKeyValuePairs); + result_157 = _(listOfKeys).chain().zipObject(listOfKeyValuePairs); + } + { + var result_158; + result_158 = _(arrayOfKeys).chain().zipObject(); + result_158 = _(arrayOfKeys).chain().zipObject(arrayOfValues); + result_158 = _(arrayOfKeys).chain().zipObject(listOfValues); + result_158 = _(listOfKeys).chain().zipObject(); + result_158 = _(listOfKeys).chain().zipObject(listOfValues); + result_158 = _(listOfKeys).chain().zipObject(arrayOfValues); + result_158 = _(listOfKeys).chain().zipObject(arrayOfKeyValuePairs); + result_158 = _(listOfKeys).chain().zipObject(listOfKeyValuePairs); + } +})(TestZipObject || (TestZipObject = {})); +var testZipWithFn; +result = _.zipWith([1, 2]); +result = _.zipWith([1, 2], testZipWithFn); +result = _.zipWith([1, 2], testZipWithFn, any); +result = _.zipWith([1, 2], [1, 2], testZipWithFn, any); +result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn, any); +result = _([1, 2]).zipWith().value(); +result = _([1, 2]).zipWith(testZipWithFn).value(); +result = _([1, 2]).zipWith(testZipWithFn, any).value(); +result = _([1, 2]).zipWith([1, 2], testZipWithFn, any).value(); +result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn, any).value(); +/********* + * Chain * + *********/ +// _.chain +var TestChain; +(function (TestChain) { + { + var result_159; + result_159 = _.chain(''); + result_159 = _('').chain(); + result_159 = _.chain('').chain(); + result_159 = _('').chain().chain(); + } + { + var result_160; + result_160 = _.chain(42); + result_160 = _(42).chain(); + } + { + var result_161; + result_161 = _.chain(true); + result_161 = _(true).chain(); + } + { + var result_162; + result_162 = _.chain(['']); + result_162 = _(['']).chain(); + } + { + var result_163; + result_163 = _.chain({ a: '' }); + result_163 = _({ a: '' }).chain(); + } +})(TestChain || (TestChain = {})); +// _.tap +var TestTap; +(function (TestTap) { + { + var interceptor; + var result_164; + _.tap('', interceptor); + _.tap('', interceptor, any); + } + { + var interceptor; + var result_165; + _.tap([''], interceptor); + _.tap([''], interceptor, any); + } + { + var interceptor; + var result_166; + _.tap({ a: '' }, interceptor); + _.tap({ a: '' }, interceptor, any); + } + { + var interceptor; + var result_167; + _.chain('').tap(interceptor, any); + _.chain('').tap(interceptor, any); + _('').tap(interceptor); + _('').tap(interceptor, any); + } + { + var interceptor; + var result_168; + _.chain(['']).tap(interceptor); + _.chain(['']).tap(interceptor, any); + _(['']).tap(interceptor); + _(['']).tap(interceptor, any); + } + { + var interceptor; + var result_169; + _.chain({ a: '' }).tap(interceptor); + _.chain({ a: '' }).tap(interceptor, any); + _({ a: '' }).tap(interceptor); + _({ a: '' }).tap(interceptor, any); + } + { + var interceptor; + var result_170; + _.chain('').tap(interceptor, any); + _.chain('').tap(interceptor, any); + _('').chain().tap(interceptor); + _('').chain().tap(interceptor, any); + } + { + var interceptor; + var result_171; + _.chain(['']).tap(interceptor); + _.chain(['']).tap(interceptor, any); + _(['']).chain().tap(interceptor); + _(['']).chain().tap(interceptor, any); + } + { + var interceptor; + var result_172; + _.chain({ a: '' }).tap(interceptor); + _.chain({ a: '' }).tap(interceptor, any); + _({ a: '' }).chain().tap(interceptor); + _({ a: '' }).chain().tap(interceptor, any); + } +})(TestTap || (TestTap = {})); +// _.thru +var TestThru; +(function (TestThru) { + { + var interceptor; + var result_173; + result_173 = _.thru(1, interceptor); + result_173 = _.thru(1, interceptor, any); + } + { + var interceptor; + var result_174; + result_174 = _(1).thru(interceptor); + result_174 = _(1).thru(interceptor, any); + } + { + var interceptor; + var result_175; + result_175 = _('').thru(interceptor); + result_175 = _('').thru(interceptor, any); + } + { + var interceptor; + var result_176; + result_176 = _(true).thru(interceptor); + result_176 = _(true).thru(interceptor, any); + } + { + var interceptor; + var result_177; + result_177 = _({ a: '' }).thru(interceptor); + result_177 = _({ a: '' }).thru(interceptor, any); + } + { + var interceptor; + var result_178; + result_178 = _([1, 2, 3]).thru(interceptor); + result_178 = _([1, 2, 3]).thru(interceptor, any); + } + { + var interceptor; + var result_179; + result_179 = _(1).chain().thru(interceptor); + result_179 = _(1).chain().thru(interceptor, any); + } + { + var interceptor; + var result_180; + result_180 = _('').chain().thru(interceptor); + result_180 = _('').chain().thru(interceptor, any); + } + { + var interceptor; + var result_181; + result_181 = _(true).chain().thru(interceptor); + result_181 = _(true).chain().thru(interceptor, any); + } + { + var interceptor; + var result_182; + result_182 = _({ a: '' }).chain().thru(interceptor); + result_182 = _({ a: '' }).chain().thru(interceptor, any); + } + { + var interceptor; + var result_183; + result_183 = _([1, 2, 3]).chain().thru(interceptor); + result_183 = _([1, 2, 3]).chain().thru(interceptor, any); + } +})(TestThru || (TestThru = {})); +// _.prototype.commit +var TestCommit; +(function (TestCommit) { + { + var result_184; + result_184 = _(42).commit(); + } + { + var result_185; + result_185 = _([]).commit(); + } + { + var result_186; + result_186 = _({}).commit(); + } + { + var result_187; + result_187 = _(42).chain().commit(); + } + { + var result_188; + result_188 = _([]).chain().commit(); + } + { + var result_189; + result_189 = _({}).chain().commit(); + } +})(TestCommit || (TestCommit = {})); +// _.prototype.concat +var TestConcat; +(function (TestConcat) { + { + var result_190; + result_190 = _(1).concat(2); + result_190 = _(1).concat(2, 3); + result_190 = _(1).concat(2, 3, 4); + result_190 = _(1).concat(2); + result_190 = _(1).concat(2, 3); + result_190 = _(1).concat(2, 3, 4); + } + { + var result_191; + result_191 = _(['']).concat(['']); + result_191 = _(['']).concat([''], ['']); + result_191 = _(['']).concat([''], [''], ['']); + result_191 = _(['']).concat(['']); + result_191 = _(['']).concat([''], ['']); + result_191 = _(['']).concat([''], [''], ['']); + } + { + var result_192; + result_192 = _({ a: '' }).concat({ a: '' }); + result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }); + result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }, { a: '' }); + result_192 = _({ a: '' }).concat({ a: '' }); + result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }); + result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }, { a: '' }); + } + { + var result_193; + result_193 = _(1).chain().concat(2); + result_193 = _(1).chain().concat(2, 3); + result_193 = _(1).chain().concat(2, 3, 4); + result_193 = _(1).chain().concat(2); + result_193 = _(1).chain().concat(2, 3); + result_193 = _(1).chain().concat(2, 3, 4); + } + { + var result_194; + result_194 = _(['']).chain().concat(['']); + result_194 = _(['']).chain().concat([''], ['']); + result_194 = _(['']).chain().concat([''], [''], ['']); + result_194 = _(['']).chain().concat(['']); + result_194 = _(['']).chain().concat([''], ['']); + result_194 = _(['']).chain().concat([''], [''], ['']); + } + { + var result_195; + result_195 = _({ a: '' }).chain().concat({ a: '' }); + result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }); + result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }, { a: '' }); + result_195 = _({ a: '' }).chain().concat({ a: '' }); + result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }); + result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }, { a: '' }); + } +})(TestConcat || (TestConcat = {})); +// _.prototype.plant +var TestPlant; +(function (TestPlant) { + { + var result_196; + result_196 = _(any).plant(42); + } + { + var result_197; + result_197 = _(any).plant(''); + } + { + var result_198; + result_198 = _(any).plant(true); + } + { + var result_199; + result_199 = _(any).plant([42]); + } + { + var result_200; + result_200 = _(any).plant([]); + } + { + var result_201; + result_201 = _(any).plant({}); + } + { + var result_202; + result_202 = _(any).chain().plant(42); + } + { + var result_203; + result_203 = _(any).chain().plant(''); + } + { + var result_204; + result_204 = _(any).chain().plant(true); + } + { + var result_205; + result_205 = _(any).chain().plant([42]); + } + { + var result_206; + result_206 = _(any).chain().plant([]); + } + { + var result_207; + result_207 = _(any).chain().plant({}); + } +})(TestPlant || (TestPlant = {})); +// _.prototype.reverse +var TestReverse; +(function (TestReverse) { + { + var result_208; + result: _([42]).reverse(); + } + { + var result_209; + result: _([42]).chain().reverse(); + } +})(TestReverse || (TestReverse = {})); +// _.prototype.toJSON +var TestToJSON; +(function (TestToJSON) { + { + var result_210; + result_210 = _('').toJSON(); + result_210 = _('').chain().toJSON(); + } + { + var result_211; + result_211 = _(42).toJSON(); + result_211 = _(42).chain().toJSON(); + } + { + var result_212; + result_212 = _(true).toJSON(); + result_212 = _(true).chain().toJSON(); + } + { + var result_213; + result_213 = _([]).toJSON(); + result_213 = _([]).chain().toJSON(); + } + { + var result_214; + result_214 = _({ a: '' }).toJSON(); + result_214 = _({ a: '' }).chain().toJSON(); + } +})(TestToJSON || (TestToJSON = {})); +// _.prototype.toString +var TestToString; +(function (TestToString) { + var result; + result = _('').toString(); + result = _(42).toString(); + result = _(true).toString(); + result = _(['']).toString(); + result = _({}).toString(); + result = _('').chain().toString(); + result = _(42).chain().toString(); + result = _(true).chain().toString(); + result = _(['']).chain().toString(); + result = _({}).chain().toString(); +})(TestToString || (TestToString = {})); +// _.prototype.value +var TestValue; +(function (TestValue) { + { + var result_215; + result_215 = _('').value(); + result_215 = _('').chain().value(); + } + { + var result_216; + result_216 = _(42).value(); + result_216 = _(42).chain().value(); + } + { + var result_217; + result_217 = _(true).value(); + result_217 = _(true).chain().value(); + } + { + var result_218; + result_218 = _([]).value(); + result_218 = _([]).chain().value(); + } + { + var result_219; + result_219 = _({ a: '' }).value(); + result_219 = _({ a: '' }).chain().value(); + } +})(TestValue || (TestValue = {})); +// _.prototype.valueOf +var TestValueOf; +(function (TestValueOf) { + { + var result_220; + result_220 = _('').valueOf(); + result_220 = _('').chain().valueOf(); + } + { + var result_221; + result_221 = _(42).valueOf(); + result_221 = _(42).chain().valueOf(); + } + { + var result_222; + result_222 = _(true).valueOf(); + result_222 = _(true).chain().valueOf(); + } + { + var result_223; + result_223 = _([]).valueOf(); + result_223 = _([]).chain().valueOf(); + } + { + var result_224; + result_224 = _({ a: '' }).valueOf(); + result_224 = _({ a: '' }).chain().valueOf(); + } +})(TestValueOf || (TestValueOf = {})); +/************** + * Collection * + **************/ +// _.at +var TestAt; +(function (TestAt) { + var array; + var list; + var dictionary; + { + var result_225; + result_225 = _.at(array, 0, '1', [2], ['3'], [4, '5']); + result_225 = _.at(list, 0, '1', [2], ['3'], [4, '5']); + result_225 = _.at(dictionary, 0, '1', [2], ['3'], [4, '5']); + } + { + var result_226; + result_226 = _(array).at(0, '1', [2], ['3'], [4, '5']); + result_226 = _(list).at(0, '1', [2], ['3'], [4, '5']); + result_226 = _(dictionary).at(0, '1', [2], ['3'], [4, '5']); + } + { + var result_227; + result_227 = _(array).chain().at(0, '1', [2], ['3'], [4, '5']); + result_227 = _(list).chain().at(0, '1', [2], ['3'], [4, '5']); + result_227 = _(dictionary).chain().at(0, '1', [2], ['3'], [4, '5']); + } +})(TestAt || (TestAt = {})); +// _.countBy +var TestCountBy; +(function (TestCountBy) { + var array; + var list; + var dictionary; + var numericDictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + var numericDictionaryIterator; + { + var result_228; + result_228 = _.countBy(''); + result_228 = _.countBy('', stringIterator); + result_228 = _.countBy('', stringIterator, any); + result_228 = _.countBy(array); + result_228 = _.countBy(array, listIterator); + result_228 = _.countBy(array, listIterator, any); + result_228 = _.countBy(array, ''); + result_228 = _.countBy(array, '', any); + result_228 = _.countBy(array, { a: 42 }); + result_228 = _.countBy(array, { a: 42 }); + result_228 = _.countBy(list); + result_228 = _.countBy(list, listIterator); + result_228 = _.countBy(list, listIterator, any); + result_228 = _.countBy(list, ''); + result_228 = _.countBy(list, '', any); + result_228 = _.countBy(list, { a: 42 }); + result_228 = _.countBy(list, { a: 42 }); + result_228 = _.countBy(dictionary); + result_228 = _.countBy(dictionary, dictionaryIterator); + result_228 = _.countBy(dictionary, dictionaryIterator, any); + result_228 = _.countBy(dictionary, ''); + result_228 = _.countBy(dictionary, '', any); + result_228 = _.countBy(dictionary, { a: 42 }); + result_228 = _.countBy(dictionary, { a: 42 }); + result_228 = _.countBy(numericDictionary); + result_228 = _.countBy(numericDictionary, numericDictionaryIterator); + result_228 = _.countBy(numericDictionary, numericDictionaryIterator, any); + result_228 = _.countBy(numericDictionary, ''); + result_228 = _.countBy(numericDictionary, '', any); + result_228 = _.countBy(numericDictionary, { a: 42 }); + result_228 = _.countBy(numericDictionary, { a: 42 }); + } + { + var resutl; + result = _('').countBy(); + result = _('').countBy(stringIterator); + result = _('').countBy(stringIterator, any); + result = _(array).countBy(); + result = _(array).countBy(listIterator); + result = _(array).countBy(listIterator, any); + result = _(array).countBy(''); + result = _(array).countBy('', any); + result = _(array).countBy({ a: 42 }); + result = _(array).countBy({ a: 42 }); + result = _(list).countBy(); + result = _(list).countBy(listIterator); + result = _(list).countBy(listIterator, any); + result = _(list).countBy(''); + result = _(list).countBy('', any); + result = _(list).countBy({ a: 42 }); + result = _(list).countBy({ a: 42 }); + result = _(dictionary).countBy(); + result = _(dictionary).countBy(dictionaryIterator); + result = _(dictionary).countBy(dictionaryIterator, any); + result = _(dictionary).countBy(''); + result = _(dictionary).countBy('', any); + result = _(dictionary).countBy({ a: 42 }); + result = _(dictionary).countBy({ a: 42 }); + result = _(numericDictionary).countBy(); + result = _(numericDictionary).countBy(numericDictionaryIterator); + result = _(numericDictionary).countBy(numericDictionaryIterator, any); + result = _(numericDictionary).countBy(''); + result = _(numericDictionary).countBy('', any); + result = _(numericDictionary).countBy({ a: 42 }); + result = _(numericDictionary).countBy({ a: 42 }); + } + { + var resutl; + result = _('').chain().countBy(); + result = _('').chain().countBy(stringIterator); + result = _('').chain().countBy(stringIterator, any); + result = _(array).chain().countBy(); + result = _(array).chain().countBy(listIterator); + result = _(array).chain().countBy(listIterator, any); + result = _(array).chain().countBy(''); + result = _(array).chain().countBy('', any); + result = _(array).chain().countBy({ a: 42 }); + result = _(array).chain().countBy({ a: 42 }); + result = _(list).chain().countBy(); + result = _(list).chain().countBy(listIterator); + result = _(list).chain().countBy(listIterator, any); + result = _(list).chain().countBy(''); + result = _(list).chain().countBy('', any); + result = _(list).chain().countBy({ a: 42 }); + result = _(list).chain().countBy({ a: 42 }); + result = _(dictionary).chain().countBy(); + result = _(dictionary).chain().countBy(dictionaryIterator); + result = _(dictionary).chain().countBy(dictionaryIterator, any); + result = _(dictionary).chain().countBy(''); + result = _(dictionary).chain().countBy('', any); + result = _(dictionary).chain().countBy({ a: 42 }); + result = _(dictionary).chain().countBy({ a: 42 }); + result = _(numericDictionary).chain().countBy(); + result = _(numericDictionary).chain().countBy(numericDictionaryIterator); + result = _(numericDictionary).chain().countBy(numericDictionaryIterator, any); + result = _(numericDictionary).chain().countBy(''); + result = _(numericDictionary).chain().countBy('', any); + result = _(numericDictionary).chain().countBy({ a: 42 }); + result = _(numericDictionary).chain().countBy({ a: 42 }); + } +})(TestCountBy || (TestCountBy = {})); +// _.each +var TestEach; +(function (TestEach) { + var array; + var list; + var dictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + { + var result_229; + _.each('', stringIterator); + _.each('', stringIterator, any); + } + { + var result_230; + _.each(array, listIterator); + _.each(array, listIterator, any); + } + { + var result_231; + _.each(list, listIterator); + _.each(list, listIterator, any); + } + { + var result_232; + _.each(dictionary, dictionaryIterator); + _.each(dictionary, dictionaryIterator, any); + } + { + var result_233; + _('').each(stringIterator); + _('').each(stringIterator, any); + } + { + var result_234; + _(array).each(listIterator); + _(array).each(listIterator, any); + } + { + var result_235; + _(list).each(listIterator); + _(list).each(listIterator, any); + } + { + var result_236; + _(dictionary).each(dictionaryIterator); + _(dictionary).each(dictionaryIterator, any); + } + { + var result_237; + _('').chain().each(stringIterator); + _('').chain().each(stringIterator, any); + } + { + var result_238; + _(array).chain().each(listIterator); + _(array).chain().each(listIterator, any); + } + { + var result_239; + _(list).chain().each(listIterator); + _(list).chain().each(listIterator, any); + } + { + var result_240; + _(dictionary).chain().each(dictionaryIterator); + _(dictionary).chain().each(dictionaryIterator, any); + } +})(TestEach || (TestEach = {})); +// _.eachRight +var TestEachRight; +(function (TestEachRight) { + var array; + var list; + var dictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + { + var result_241; + _.eachRight('', stringIterator); + _.eachRight('', stringIterator, any); + } + { + var result_242; + _.eachRight(array, listIterator); + _.eachRight(array, listIterator, any); + } + { + var result_243; + _.eachRight(list, listIterator); + _.eachRight(list, listIterator, any); + } + { + var result_244; + _.eachRight(dictionary, dictionaryIterator); + _.eachRight(dictionary, dictionaryIterator, any); + } + { + var result_245; + _('').eachRight(stringIterator); + _('').eachRight(stringIterator, any); + } + { + var result_246; + _(array).eachRight(listIterator); + _(array).eachRight(listIterator, any); + } + { + var result_247; + _(list).eachRight(listIterator); + _(list).eachRight(listIterator, any); + } + { + var result_248; + _(dictionary).eachRight(dictionaryIterator); + _(dictionary).eachRight(dictionaryIterator, any); + } + { + var result_249; + _('').chain().eachRight(stringIterator); + _('').chain().eachRight(stringIterator, any); + } + { + var result_250; + _(array).chain().eachRight(listIterator); + _(array).chain().eachRight(listIterator, any); + } + { + var result_251; + _(list).chain().eachRight(listIterator); + _(list).chain().eachRight(listIterator, any); + } + { + var result_252; + _(dictionary).chain().eachRight(dictionaryIterator); + _(dictionary).chain().eachRight(dictionaryIterator, any); + } +})(TestEachRight || (TestEachRight = {})); +// _.every +var TestEvery; +(function (TestEvery) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + { + var result_253; + result_253 = _.every(array); + result_253 = _.every(array, listIterator); + result_253 = _.every(array, listIterator, any); + result_253 = _.every(array, ''); + result_253 = _.every(array, { a: 42 }); + result_253 = _.every(list); + result_253 = _.every(list, listIterator); + result_253 = _.every(list, listIterator, any); + result_253 = _.every(list, ''); + result_253 = _.every(list, { a: 42 }); + result_253 = _.every(dictionary); + result_253 = _.every(dictionary, dictionaryIterator); + result_253 = _.every(dictionary, dictionaryIterator, any); + result_253 = _.every(dictionary, ''); + result_253 = _.every(dictionary, { a: 42 }); + result_253 = _(array).every(); + result_253 = _(array).every(listIterator); + result_253 = _(array).every(listIterator, any); + result_253 = _(array).every(''); + result_253 = _(array).every({ a: 42 }); + result_253 = _(list).every(); + result_253 = _(list).every(listIterator); + result_253 = _(list).every(listIterator, any); + result_253 = _(list).every(''); + result_253 = _(list).every({ a: 42 }); + result_253 = _(dictionary).every(); + result_253 = _(dictionary).every(dictionaryIterator); + result_253 = _(dictionary).every(dictionaryIterator, any); + result_253 = _(dictionary).every(''); + result_253 = _(dictionary).every({ a: 42 }); + } + { + var result_254; + result_254 = _(array).chain().every(); + result_254 = _(array).chain().every(listIterator); + result_254 = _(array).chain().every(listIterator, any); + result_254 = _(array).chain().every(''); + result_254 = _(array).chain().every({ a: 42 }); + result_254 = _(list).chain().every(); + result_254 = _(list).chain().every(listIterator); + result_254 = _(list).chain().every(listIterator, any); + result_254 = _(list).chain().every(''); + result_254 = _(list).chain().every({ a: 42 }); + result_254 = _(dictionary).chain().every(); + result_254 = _(dictionary).chain().every(dictionaryIterator); + result_254 = _(dictionary).chain().every(dictionaryIterator, any); + result_254 = _(dictionary).chain().every(''); + result_254 = _(dictionary).chain().every({ a: 42 }); + } +})(TestEvery || (TestEvery = {})); +// _.filter +var TestFilter; +(function (TestFilter) { + var array; + var list; + var dictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + { + var result_255; + result_255 = _.filter('', stringIterator); + result_255 = _.filter('', stringIterator, any); + } + { + var result_256; + result_256 = _.filter(array, listIterator); + result_256 = _.filter(array, listIterator, any); + result_256 = _.filter(array, ''); + result_256 = _.filter(array, '', any); + result_256 = _.filter(array, { a: 42 }); + result_256 = _.filter(list, listIterator); + result_256 = _.filter(list, listIterator, any); + result_256 = _.filter(list, ''); + result_256 = _.filter(list, '', any); + result_256 = _.filter(list, { a: 42 }); + result_256 = _.filter(dictionary, dictionaryIterator); + result_256 = _.filter(dictionary, dictionaryIterator, any); + result_256 = _.filter(dictionary, ''); + result_256 = _.filter(dictionary, '', any); + result_256 = _.filter(dictionary, { a: 42 }); + } + { + var result_257; + result_257 = _('').filter(stringIterator); + result_257 = _('').filter(stringIterator, any); + } + { + var result_258; + result_258 = _(array).filter(listIterator); + result_258 = _(array).filter(listIterator, any); + result_258 = _(array).filter(''); + result_258 = _(array).filter('', any); + result_258 = _(array).filter({ a: 42 }); + result_258 = _(list).filter(listIterator); + result_258 = _(list).filter(listIterator, any); + result_258 = _(list).filter(''); + result_258 = _(list).filter('', any); + result_258 = _(list).filter({ a: 42 }); + result_258 = _(dictionary).filter(dictionaryIterator); + result_258 = _(dictionary).filter(dictionaryIterator, any); + result_258 = _(dictionary).filter(''); + result_258 = _(dictionary).filter('', any); + result_258 = _(dictionary).filter({ a: 42 }); + } + { + var result_259; + result_259 = _('').chain().filter(stringIterator); + result_259 = _('').chain().filter(stringIterator, any); + } + { + var result_260; + result_260 = _(array).chain().filter(listIterator); + result_260 = _(array).chain().filter(listIterator, any); + result_260 = _(array).chain().filter(''); + result_260 = _(array).chain().filter('', any); + result_260 = _(array).chain().filter({ a: 42 }); + result_260 = _(list).chain().filter(listIterator); + result_260 = _(list).chain().filter(listIterator, any); + result_260 = _(list).chain().filter(''); + result_260 = _(list).chain().filter('', any); + result_260 = _(list).chain().filter({ a: 42 }); + result_260 = _(dictionary).chain().filter(dictionaryIterator); + result_260 = _(dictionary).chain().filter(dictionaryIterator, any); + result_260 = _(dictionary).chain().filter(''); + result_260 = _(dictionary).chain().filter('', any); + result_260 = _(dictionary).chain().filter({ a: 42 }); + } +})(TestFilter || (TestFilter = {})); +// _.find +var TestFind; +(function (TestFind) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + var result; + result = _.find(array); + result = _.find(array, listIterator); + result = _.find(array, listIterator, any); + result = _.find(array, ''); + result = _.find(array, { a: 42 }); + result = _.find(list); + result = _.find(list, listIterator); + result = _.find(list, listIterator, any); + result = _.find(list, ''); + result = _.find(list, { a: 42 }); + result = _.find(dictionary); + result = _.find(dictionary, dictionaryIterator); + result = _.find(dictionary, dictionaryIterator, any); + result = _.find(dictionary, ''); + result = _.find(dictionary, { a: 42 }); + result = _(array).find(); + result = _(array).find(listIterator); + result = _(array).find(listIterator, any); + result = _(array).find(''); + result = _(array).find({ a: 42 }); + result = _(list).find(); + result = _(list).find(listIterator); + result = _(list).find(listIterator, any); + result = _(list).find(''); + result = _(list).find({ a: 42 }); + result = _(dictionary).find(); + result = _(dictionary).find(dictionaryIterator); + result = _(dictionary).find(dictionaryIterator, any); + result = _(dictionary).find(''); + result = _(dictionary).find({ a: 42 }); +})(TestFind || (TestFind = {})); +result = _.findLast([1, 2, 3, 4], function (num) { + return num % 2 == 0; +}); +result = _.findLast(foodsCombined, { 'type': 'vegetable' }); +result = _.findLast(foodsCombined, 'organic'); +result = _([1, 2, 3, 4]).findLast(function (num) { + return num % 2 == 0; +}); +result = _(foodsCombined).findLast({ 'type': 'vegetable' }); +result = _(foodsCombined).findLast('organic'); +// _.forEach +var TestForEach; +(function (TestForEach) { + var array; + var list; + var dictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + { + var result_261; + _.forEach('', stringIterator); + _.forEach('', stringIterator, any); + } + { + var result_262; + _.forEach(array, listIterator); + _.forEach(array, listIterator, any); + } + { + var result_263; + _.forEach(list, listIterator); + _.forEach(list, listIterator, any); + } + { + var result_264; + _.forEach(dictionary, dictionaryIterator); + _.forEach(dictionary, dictionaryIterator, any); + } + { + var result_265; + _('').forEach(stringIterator); + _('').forEach(stringIterator, any); + } + { + var result_266; + _(array).forEach(listIterator); + _(array).forEach(listIterator, any); + } + { + var result_267; + _(list).forEach(listIterator); + _(list).forEach(listIterator, any); + } + { + var result_268; + _(dictionary).forEach(dictionaryIterator); + _(dictionary).forEach(dictionaryIterator, any); + } + { + var result_269; + _('').chain().forEach(stringIterator); + _('').chain().forEach(stringIterator, any); + } + { + var result_270; + _(array).chain().forEach(listIterator); + _(array).chain().forEach(listIterator, any); + } + { + var result_271; + _(list).chain().forEach(listIterator); + _(list).chain().forEach(listIterator, any); + } + { + var result_272; + _(dictionary).chain().forEach(dictionaryIterator); + _(dictionary).chain().forEach(dictionaryIterator, any); + } +})(TestForEach || (TestForEach = {})); +// _.forEachRight +var TestForEachRight; +(function (TestForEachRight) { + var array; + var list; + var dictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + { + var result_273; + _.forEachRight('', stringIterator); + _.forEachRight('', stringIterator, any); + } + { + var result_274; + _.forEachRight(array, listIterator); + _.forEachRight(array, listIterator, any); + } + { + var result_275; + _.forEachRight(list, listIterator); + _.forEachRight(list, listIterator, any); + } + { + var result_276; + _.forEachRight(dictionary, dictionaryIterator); + _.forEachRight(dictionary, dictionaryIterator, any); + } + { + var result_277; + _('').forEachRight(stringIterator); + _('').forEachRight(stringIterator, any); + } + { + var result_278; + _(array).forEachRight(listIterator); + _(array).forEachRight(listIterator, any); + } + { + var result_279; + _(list).forEachRight(listIterator); + _(list).forEachRight(listIterator, any); + } + { + var result_280; + _(dictionary).forEachRight(dictionaryIterator); + _(dictionary).forEachRight(dictionaryIterator, any); + } + { + var result_281; + _('').chain().forEachRight(stringIterator); + _('').chain().forEachRight(stringIterator, any); + } + { + var result_282; + _(array).chain().forEachRight(listIterator); + _(array).chain().forEachRight(listIterator, any); + } + { + var result_283; + _(list).chain().forEachRight(listIterator); + _(list).chain().forEachRight(listIterator, any); + } + { + var result_284; + _(dictionary).chain().forEachRight(dictionaryIterator); + _(dictionary).chain().forEachRight(dictionaryIterator, any); + } +})(TestForEachRight || (TestForEachRight = {})); +// _.groupBy +var TestGroupBy; +(function (TestGroupBy) { + var array; + var list; + var dictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + { + var result_285; + result_285 = _.groupBy(''); + result_285 = _.groupBy('', stringIterator); + result_285 = _.groupBy('', stringIterator, any); + result_285 = _.groupBy('', stringIterator); + result_285 = _.groupBy('', stringIterator, any); + } + { + var result_286; + result_286 = _.groupBy(array); + result_286 = _.groupBy(array, listIterator); + result_286 = _.groupBy(array, listIterator, any); + result_286 = _.groupBy(array, ''); + result_286 = _.groupBy(array, '', any); + result_286 = _.groupBy(array, { a: 42 }); + result_286 = _.groupBy(array, listIterator); + result_286 = _.groupBy(array, listIterator, any); + result_286 = _.groupBy(array, '', true); + result_286 = _.groupBy(array, { a: 42 }); + result_286 = _.groupBy(list); + result_286 = _.groupBy(list, listIterator); + result_286 = _.groupBy(list, listIterator, any); + result_286 = _.groupBy(list, ''); + result_286 = _.groupBy(list, '', any); + result_286 = _.groupBy(list, { a: 42 }); + result_286 = _.groupBy(list, listIterator); + result_286 = _.groupBy(list, listIterator, any); + result_286 = _.groupBy(list, '', true); + result_286 = _.groupBy(list, { a: 42 }); + result_286 = _.groupBy(dictionary); + result_286 = _.groupBy(dictionary, dictionaryIterator); + result_286 = _.groupBy(dictionary, dictionaryIterator, any); + result_286 = _.groupBy(dictionary, ''); + result_286 = _.groupBy(dictionary, '', any); + result_286 = _.groupBy(dictionary, { a: 42 }); + result_286 = _.groupBy(dictionary, dictionaryIterator); + result_286 = _.groupBy(dictionary, dictionaryIterator, any); + result_286 = _.groupBy(dictionary, '', true); + result_286 = _.groupBy(dictionary, { a: 42 }); + } + { + var result_287; + result_287 = _('').groupBy(); + result_287 = _('').groupBy(stringIterator); + result_287 = _('').groupBy(stringIterator, any); + } + { + var result_288; + result_288 = _(array).groupBy(); + result_288 = _(array).groupBy(listIterator); + result_288 = _(array).groupBy(listIterator, any); + result_288 = _(array).groupBy(''); + result_288 = _(array).groupBy('', true); + result_288 = _(array).groupBy({ a: 42 }); + result_288 = _(list).groupBy(); + result_288 = _(list).groupBy(listIterator); + result_288 = _(list).groupBy(listIterator, any); + result_288 = _(list).groupBy(''); + result_288 = _(list).groupBy('', any); + result_288 = _(list).groupBy({ a: 42 }); + result_288 = _(list).groupBy(listIterator); + result_288 = _(list).groupBy(listIterator, any); + result_288 = _(list).groupBy('', true); + result_288 = _(list).groupBy({ a: 42 }); + result_288 = _(dictionary).groupBy(); + result_288 = _(dictionary).groupBy(dictionaryIterator); + result_288 = _(dictionary).groupBy(dictionaryIterator, any); + result_288 = _(dictionary).groupBy(''); + result_288 = _(dictionary).groupBy('', any); + result_288 = _(dictionary).groupBy({ a: 42 }); + result_288 = _(dictionary).groupBy(dictionaryIterator); + result_288 = _(dictionary).groupBy(dictionaryIterator, any); + result_288 = _(dictionary).groupBy('', true); + result_288 = _(dictionary).groupBy({ a: 42 }); + } + { + var result_289; + result_289 = _('').chain().groupBy(); + result_289 = _('').chain().groupBy(stringIterator); + result_289 = _('').chain().groupBy(stringIterator, any); + } + { + var result_290; + result_290 = _(array).chain().groupBy(); + result_290 = _(array).chain().groupBy(listIterator); + result_290 = _(array).chain().groupBy(listIterator, any); + result_290 = _(array).chain().groupBy(''); + result_290 = _(array).chain().groupBy('', true); + result_290 = _(array).chain().groupBy({ a: 42 }); + result_290 = _(list).chain().groupBy(); + result_290 = _(list).chain().groupBy(listIterator); + result_290 = _(list).chain().groupBy(listIterator, any); + result_290 = _(list).chain().groupBy(''); + result_290 = _(list).chain().groupBy('', any); + result_290 = _(list).chain().groupBy({ a: 42 }); + result_290 = _(list).chain().groupBy(listIterator); + result_290 = _(list).chain().groupBy(listIterator, any); + result_290 = _(list).chain().groupBy('', true); + result_290 = _(list).chain().groupBy({ a: 42 }); + result_290 = _(dictionary).chain().groupBy(); + result_290 = _(dictionary).chain().groupBy(dictionaryIterator); + result_290 = _(dictionary).chain().groupBy(dictionaryIterator, any); + result_290 = _(dictionary).chain().groupBy(''); + result_290 = _(dictionary).chain().groupBy('', any); + result_290 = _(dictionary).chain().groupBy({ a: 42 }); + result_290 = _(dictionary).chain().groupBy(dictionaryIterator); + result_290 = _(dictionary).chain().groupBy(dictionaryIterator, any); + result_290 = _(dictionary).chain().groupBy('', true); + result_290 = _(dictionary).chain().groupBy({ a: 42 }); + } +})(TestGroupBy || (TestGroupBy = {})); +// _.includes +var TestIncludes; +(function (TestIncludes) { + var array; + var list; + var dictionary; + var target; + { + var result_291; + result_291 = _.includes(array, target); + result_291 = _.includes(array, target, 42); + result_291 = _.includes(list, target); + result_291 = _.includes(list, target, 42); + result_291 = _.includes(dictionary, target); + result_291 = _.includes(dictionary, target, 42); + result_291 = _(array).includes(target); + result_291 = _(array).includes(target, 42); + result_291 = _(list).includes(target); + result_291 = _(list).includes(target, 42); + result_291 = _(dictionary).includes(target); + result_291 = _(dictionary).includes(target, 42); + } + { + var result_292; + result_292 = _(array).chain().includes(target); + result_292 = _(array).chain().includes(target, 42); + result_292 = _(list).chain().includes(target); + result_292 = _(list).chain().includes(target, 42); + result_292 = _(dictionary).chain().includes(target); + result_292 = _(dictionary).chain().includes(target, 42); + } +})(TestIncludes || (TestIncludes = {})); +// _.keyBy +var TestKeyBy; +(function (TestKeyBy) { + var array; + var list; + var dictionary; + var numericDictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + var numericDictionaryIterator; + { + var result_293; + result_293 = _.keyBy('abcd'); + result_293 = _.keyBy('abcd', stringIterator); + result_293 = _.keyBy('abcd', stringIterator, any); + } + { + var result_294; + result_294 = _.keyBy(array); + result_294 = _.keyBy(array, listIterator); + result_294 = _.keyBy(array, listIterator, any); + result_294 = _.keyBy(array, 'a'); + result_294 = _.keyBy(array, 'a', any); + result_294 = _.keyBy(array, { a: 42 }); + result_294 = _.keyBy(array, { a: 42 }); + result_294 = _.keyBy(list); + result_294 = _.keyBy(list, listIterator); + result_294 = _.keyBy(list, listIterator, any); + result_294 = _.keyBy(list, 'a'); + result_294 = _.keyBy(list, 'a', any); + result_294 = _.keyBy(list, { a: 42 }); + result_294 = _.keyBy(list, { a: 42 }); + result_294 = _.keyBy(numericDictionary); + result_294 = _.keyBy(numericDictionary, numericDictionaryIterator); + result_294 = _.keyBy(numericDictionary, numericDictionaryIterator, any); + result_294 = _.keyBy(numericDictionary, 'a'); + result_294 = _.keyBy(numericDictionary, 'a', any); + result_294 = _.keyBy(numericDictionary, { a: 42 }); + result_294 = _.keyBy(numericDictionary, { a: 42 }); + result_294 = _.keyBy(dictionary); + result_294 = _.keyBy(dictionary, dictionaryIterator); + result_294 = _.keyBy(dictionary, dictionaryIterator, any); + result_294 = _.keyBy(dictionary, 'a'); + result_294 = _.keyBy(dictionary, 'a', any); + result_294 = _.keyBy(dictionary, { a: 42 }); + result_294 = _.keyBy(dictionary, { a: 42 }); + } + { + var result_295; + result_295 = _('abcd').keyBy(); + result_295 = _('abcd').keyBy(stringIterator); + result_295 = _('abcd').keyBy(stringIterator, any); + } + { + var result_296; + result_296 = _(array).keyBy(); + result_296 = _(array).keyBy(listIterator); + result_296 = _(array).keyBy(listIterator, any); + result_296 = _(array).keyBy('a'); + result_296 = _(array).keyBy('a', any); + result_296 = _(array).keyBy({ a: 42 }); + result_296 = _(list).keyBy(); + result_296 = _(list).keyBy(listIterator); + result_296 = _(list).keyBy(listIterator, any); + result_296 = _(list).keyBy('a'); + result_296 = _(list).keyBy('a', any); + result_296 = _(list).keyBy({ a: 42 }); + result_296 = _(list).keyBy({ a: 42 }); + result_296 = _(numericDictionary).keyBy(); + result_296 = _(numericDictionary).keyBy(numericDictionaryIterator); + result_296 = _(numericDictionary).keyBy(numericDictionaryIterator, any); + result_296 = _(numericDictionary).keyBy('a'); + result_296 = _(numericDictionary).keyBy('a', any); + result_296 = _(numericDictionary).keyBy({ a: 42 }); + result_296 = _(numericDictionary).keyBy({ a: 42 }); + result_296 = _(dictionary).keyBy(); + result_296 = _(dictionary).keyBy(dictionaryIterator); + result_296 = _(dictionary).keyBy(dictionaryIterator, any); + result_296 = _(dictionary).keyBy('a'); + result_296 = _(dictionary).keyBy('a', any); + result_296 = _(dictionary).keyBy({ a: 42 }); + result_296 = _(dictionary).keyBy({ a: 42 }); + } + { + var result_297; + result_297 = _('abcd').chain().keyBy(); + result_297 = _('abcd').chain().keyBy(stringIterator); + result_297 = _('abcd').chain().keyBy(stringIterator, any); + } + { + var result_298; + result_298 = _(array).chain().keyBy(); + result_298 = _(array).chain().keyBy(listIterator); + result_298 = _(array).chain().keyBy(listIterator, any); + result_298 = _(array).chain().keyBy('a'); + result_298 = _(array).chain().keyBy('a', any); + result_298 = _(array).chain().keyBy({ a: 42 }); + result_298 = _(list).chain().keyBy(); + result_298 = _(list).chain().keyBy(listIterator); + result_298 = _(list).chain().keyBy(listIterator, any); + result_298 = _(list).chain().keyBy('a'); + result_298 = _(list).chain().keyBy('a', any); + result_298 = _(list).chain().keyBy({ a: 42 }); + result_298 = _(list).chain().keyBy({ a: 42 }); + result_298 = _(numericDictionary).chain().keyBy(); + result_298 = _(numericDictionary).chain().keyBy(numericDictionaryIterator); + result_298 = _(numericDictionary).chain().keyBy(numericDictionaryIterator, any); + result_298 = _(numericDictionary).chain().keyBy('a'); + result_298 = _(numericDictionary).chain().keyBy('a', any); + result_298 = _(numericDictionary).chain().keyBy({ a: 42 }); + result_298 = _(numericDictionary).chain().keyBy({ a: 42 }); + result_298 = _(dictionary).chain().keyBy(); + result_298 = _(dictionary).chain().keyBy(dictionaryIterator); + result_298 = _(dictionary).chain().keyBy(dictionaryIterator, any); + result_298 = _(dictionary).chain().keyBy('a'); + result_298 = _(dictionary).chain().keyBy('a', any); + result_298 = _(dictionary).chain().keyBy({ a: 42 }); + result_298 = _(dictionary).chain().keyBy({ a: 42 }); + } +})(TestKeyBy || (TestKeyBy = {})); +//_.invokeMap +var TestInvokeMap; +(function (TestInvokeMap) { + var numArray = [4, 2, 1, 3]; + var numDict = { + a: 1, + b: 2, + c: 3, + d: 4 + }; + { + var result_299; + result_299 = _.invokeMap(numArray, 'toString'); + result_299 = _.invokeMap(numArray, 'toString', 2); + result_299 = _.invokeMap(numArray, 'toString'); + result_299 = _.invokeMap(numArray, 'toString', 2); + result_299 = _(numArray).invokeMap('toString').value(); + result_299 = _(numArray).invokeMap('toString', 2).value(); + result_299 = _(numArray).chain().invokeMap('toString').value(); + result_299 = _(numArray).chain().invokeMap('toString', 2).value(); + result_299 = _.invokeMap(numArray, Number.prototype.toString); + result_299 = _.invokeMap(numArray, Number.prototype.toString, 2); + result_299 = _.invokeMap(numArray, Number.prototype.toString); + result_299 = _.invokeMap(numArray, Number.prototype.toString, 2); + result_299 = _(numArray).invokeMap(Number.prototype.toString).value(); + result_299 = _(numArray).invokeMap(Number.prototype.toString, 2).value(); + result_299 = _(numArray).chain().invokeMap(Number.prototype.toString).value(); + result_299 = _(numArray).chain().invokeMap(Number.prototype.toString, 2).value(); + } + { + var result_300; + result_300 = _.invokeMap(numDict, 'toString'); + result_300 = _.invokeMap(numDict, 'toString', 2); + result_300 = _.invokeMap(numDict, 'toString'); + result_300 = _.invokeMap(numDict, 'toString', 2); + result_300 = _(numDict).invokeMap('toString').value(); + result_300 = _(numDict).invokeMap('toString', 2).value(); + result_300 = _(numDict).chain().invokeMap('toString').value(); + result_300 = _(numDict).chain().invokeMap('toString', 2).value(); + result_300 = _.invokeMap(numDict, Number.prototype.toString); + result_300 = _.invokeMap(numDict, Number.prototype.toString, 2); + result_300 = _.invokeMap(numDict, Number.prototype.toString); + result_300 = _.invokeMap(numDict, Number.prototype.toString, 2); + result_300 = _(numDict).invokeMap(Number.prototype.toString).value(); + result_300 = _(numDict).invokeMap(Number.prototype.toString, 2).value(); + result_300 = _(numDict).chain().invokeMap(Number.prototype.toString).value(); + result_300 = _(numDict).chain().invokeMap(Number.prototype.toString, 2).value(); + } +})(TestInvokeMap || (TestInvokeMap = {})); +// _.map +var TestMap; +(function (TestMap) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + { + var result_301; + result_301 = _.map(array); + result_301 = _.map(array, listIterator); + result_301 = _.map(array, listIterator, any); + result_301 = _.map(array, ''); + result_301 = _.map(list); + result_301 = _.map(list, listIterator); + result_301 = _.map(list, listIterator, any); + result_301 = _.map(list, ''); + result_301 = _.map(dictionary); + result_301 = _.map(dictionary, dictionaryIterator); + result_301 = _.map(dictionary, dictionaryIterator, any); + result_301 = _.map(dictionary, ''); + } + { + var result_302; + result_302 = _.map(array, {}); + result_302 = _.map(list, {}); + result_302 = _.map(dictionary, {}); + } + { + var result_303; + result_303 = _(array).map(); + result_303 = _(array).map(listIterator); + result_303 = _(array).map(listIterator, any); + result_303 = _(array).map(''); + result_303 = _(list).map(); + result_303 = _(list).map(listIterator); + result_303 = _(list).map(listIterator, any); + result_303 = _(list).map(''); + result_303 = _(dictionary).map(); + result_303 = _(dictionary).map(dictionaryIterator); + result_303 = _(dictionary).map(dictionaryIterator, any); + result_303 = _(dictionary).map(''); + } + { + var result_304; + result_304 = _(array).map({}); + result_304 = _(list).map({}); + result_304 = _(dictionary).map({}); + } + { + var result_305; + result_305 = _(array).chain().map(); + result_305 = _(array).chain().map(listIterator); + result_305 = _(array).chain().map(listIterator, any); + result_305 = _(array).chain().map(''); + result_305 = _(list).chain().map(); + result_305 = _(list).chain().map(listIterator); + result_305 = _(list).chain().map(listIterator, any); + result_305 = _(list).chain().map(''); + result_305 = _(dictionary).chain().map(); + result_305 = _(dictionary).chain().map(dictionaryIterator); + result_305 = _(dictionary).chain().map(dictionaryIterator, any); + result_305 = _(dictionary).chain().map(''); + } + { + var result_306; + result_306 = _(array).chain().map({}); + result_306 = _(list).chain().map({}); + result_306 = _(dictionary).chain().map({}); + } +})(TestMap || (TestMap = {})); +// _.partition +result = _.partition('abcd', function (n) { return n < 'c'; }); +result = _.partition(['a', 'b', 'c', 'd'], function (n) { return n < 'c'; }); +result = _.partition([1, 2, 3, 4], function (n) { return n < 3; }); +result = _.partition({ 0: 1, 1: 2, 2: 3, 3: 4, length: 4 }, function (n) { return n < 3; }); +result = _.partition({ a: 1, b: 2, c: 3, d: 4 }, function (n) { return n < 3; }); +result = _.partition([{ a: 1 }, { a: 2 }], { a: 2 }); +result = _.partition({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }, { a: 2 }); +result = _.partition({ 0: { a: 1 }, 1: { a: 2 } }, { a: 2 }); +result = _.partition([{ a: 1 }, { a: 2 }], 'a'); +result = _.partition([{ a: 1 }, { a: 2 }], 'a', 2); +result = _.partition({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }, 'a'); +result = _.partition({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }, 'a', 2); +result = _.partition({ 0: { a: 1 }, 1: { a: 2 } }, 'a'); +result = _.partition({ 0: { a: 1 }, 1: { a: 2 } }, 'a', 2); +result = _('abcd').partition(function (n) { return n < 'c'; }).value(); +result = _(['a', 'b', 'c', 'd']).partition(function (n) { return n < 'c'; }).value(); +result = _([1, 2, 3, 4]).partition(function (n) { return n < 3; }).value(); +result = _({ 0: 1, 1: 2, 2: 3, 3: 4, length: 4 }).partition(function (n) { return n < 3; }).value(); +result = _({ a: 1, b: 2, c: 3, d: 4 }).partition(function (n) { return n < 3; }).value(); +result = _([{ a: 1 }, { a: 2 }]).partition({ a: 2 }).value(); +result = _({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }).partition({ a: 2 }).value(); +result = _({ 0: { a: 1 }, 1: { a: 2 } }).partition({ a: 2 }).value(); +result = _([{ a: 1 }, { a: 2 }]).partition('a').value(); +result = _([{ a: 1 }, { a: 2 }]).partition('a', 2).value(); +result = _({ 0: { a: 1 }, 1: { a: 2 } }).partition('a').value(); +result = _({ 0: { a: 1 }, 1: { a: 2 } }).partition('a', 2).value(); +result = _.reduce([1, 2, 3], function (sum, num) { + return sum + num; +}); +result = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function (r, num, key) { + r[key] = num * 3; + return r; +}, {}); +result = _([1, 2, 3]).reduce(function (sum, num) { + return sum + num; +}); +result = _({ 'a': 1, 'b': 2, 'c': 3 }).reduce(function (r, num, key) { + r[key] = num * 3; + return r; +}, {}); +result = _.reduceRight([[0, 1], [2, 3], [4, 5]], function (a, b) { return a.concat(b); }, []); +// _.reject +var TestReject; +(function (TestReject) { + var array; + var list; + var dictionary; + var stringIterator; + var listIterator; + var dictionaryIterator; + { + var result_307; + result_307 = _.reject('', stringIterator); + result_307 = _.reject('', stringIterator, any); + } + { + var result_308; + result_308 = _.reject(array, listIterator); + result_308 = _.reject(array, listIterator, any); + result_308 = _.reject(array, ''); + result_308 = _.reject(array, '', any); + result_308 = _.reject(array, { a: 42 }); + result_308 = _.reject(list, listIterator); + result_308 = _.reject(list, listIterator, any); + result_308 = _.reject(list, ''); + result_308 = _.reject(list, '', any); + result_308 = _.reject(list, { a: 42 }); + result_308 = _.reject(dictionary, dictionaryIterator); + result_308 = _.reject(dictionary, dictionaryIterator, any); + result_308 = _.reject(dictionary, ''); + result_308 = _.reject(dictionary, '', any); + result_308 = _.reject(dictionary, { a: 42 }); + } + { + var result_309; + result_309 = _('').reject(stringIterator); + result_309 = _('').reject(stringIterator, any); + } + { + var result_310; + result_310 = _(array).reject(listIterator); + result_310 = _(array).reject(listIterator, any); + result_310 = _(array).reject(''); + result_310 = _(array).reject('', any); + result_310 = _(array).reject({ a: 42 }); + result_310 = _(list).reject(listIterator); + result_310 = _(list).reject(listIterator, any); + result_310 = _(list).reject(''); + result_310 = _(list).reject('', any); + result_310 = _(list).reject({ a: 42 }); + result_310 = _(dictionary).reject(dictionaryIterator); + result_310 = _(dictionary).reject(dictionaryIterator, any); + result_310 = _(dictionary).reject(''); + result_310 = _(dictionary).reject('', any); + result_310 = _(dictionary).reject({ a: 42 }); + } + { + var result_311; + result_311 = _('').chain().reject(stringIterator); + result_311 = _('').chain().reject(stringIterator, any); + } + { + var result_312; + result_312 = _(array).chain().reject(listIterator); + result_312 = _(array).chain().reject(listIterator, any); + result_312 = _(array).chain().reject(''); + result_312 = _(array).chain().reject('', any); + result_312 = _(array).chain().reject({ a: 42 }); + result_312 = _(list).chain().reject(listIterator); + result_312 = _(list).chain().reject(listIterator, any); + result_312 = _(list).chain().reject(''); + result_312 = _(list).chain().reject('', any); + result_312 = _(list).chain().reject({ a: 42 }); + result_312 = _(dictionary).chain().reject(dictionaryIterator); + result_312 = _(dictionary).chain().reject(dictionaryIterator, any); + result_312 = _(dictionary).chain().reject(''); + result_312 = _(dictionary).chain().reject('', any); + result_312 = _(dictionary).chain().reject({ a: 42 }); + } +})(TestReject || (TestReject = {})); +// _.sample +result = _.sample([1, 2, 3, 4]); +result = _([1, 2, 3, 4]).sample(); +result = _([1, 2, 3, 4]).sample().value(); +// _.sampleSize +result = _.sampleSize([1, 2, 3, 4], 2); +result = _([1, 2, 3, 4]).sampleSize(2); +result = _([1, 2, 3, 4]).sampleSize(2).value(); +// _.shuffle +var TestShuffle; +(function (TestShuffle) { + var array; + var list; + var dictionary; + { + var result_313; + result_313 = _.shuffle('abc'); + } + { + var result_314; + result_314 = _.shuffle(array); + result_314 = _.shuffle(list); + result_314 = _.shuffle(dictionary); + } + { + var result_315; + result_315 = _('abc').shuffle(); + } + { + var result_316; + result_316 = _(array).shuffle(); + result_316 = _(list).shuffle(); + result_316 = _(dictionary).shuffle(); + } + { + var result_317; + result_317 = _('abc').chain().shuffle(); + } + { + var result_318; + result_318 = _(array).chain().shuffle(); + result_318 = _(list).chain().shuffle(); + result_318 = _(dictionary).chain().shuffle(); + } +})(TestShuffle || (TestShuffle = {})); +// _.size +var TestSize; +(function (TestSize) { + var array; + var list; + var dictionary; + { + var result_319; + result_319 = _.size(array); + result_319 = _.size(list); + result_319 = _.size(dictionary); + result_319 = _.size(''); + result_319 = _(array).size(); + result_319 = _(list).size(); + result_319 = _(dictionary).size(); + result_319 = _('').size(); + } + { + var result_320; + result_320 = _(array).chain().size(); + result_320 = _(list).chain().size(); + result_320 = _(dictionary).chain().size(); + result_320 = _('').chain().size(); + } +})(TestSize || (TestSize = {})); +// _.some +var TestSome; +(function (TestSome) { + var array; + var list; + var dictionary; + var numericDictionary; + var listIterator; + var dictionaryIterator; + var numericDictionaryIterator; + { + var result_321; + result_321 = _.some(array); + result_321 = _.some(array, listIterator); + result_321 = _.some(array, listIterator, any); + result_321 = _.some(array, ''); + result_321 = _.some(array, { a: 42 }); + result_321 = _.some(list); + result_321 = _.some(list, listIterator); + result_321 = _.some(list, listIterator, any); + result_321 = _.some(list, ''); + result_321 = _.some(list, { a: 42 }); + result_321 = _.some(dictionary); + result_321 = _.some(dictionary, dictionaryIterator); + result_321 = _.some(dictionary, dictionaryIterator, any); + result_321 = _.some(dictionary, ''); + result_321 = _.some(dictionary, { a: 42 }); + result_321 = _.some(numericDictionary); + result_321 = _.some(numericDictionary, numericDictionaryIterator); + result_321 = _.some(numericDictionary, numericDictionaryIterator, any); + result_321 = _.some(numericDictionary, ''); + result_321 = _.some(numericDictionary, { a: 42 }); + result_321 = _(array).some(); + result_321 = _(array).some(listIterator); + result_321 = _(array).some(listIterator, any); + result_321 = _(array).some(''); + result_321 = _(array).some({ a: 42 }); + result_321 = _(list).some(); + result_321 = _(list).some(listIterator); + result_321 = _(list).some(listIterator, any); + result_321 = _(list).some(''); + result_321 = _(list).some({ a: 42 }); + result_321 = _(dictionary).some(); + result_321 = _(dictionary).some(dictionaryIterator); + result_321 = _(dictionary).some(dictionaryIterator, any); + result_321 = _(dictionary).some(''); + result_321 = _(dictionary).some({ a: 42 }); + result_321 = _(numericDictionary).some(); + result_321 = _(numericDictionary).some(numericDictionaryIterator); + result_321 = _(numericDictionary).some(numericDictionaryIterator, any); + result_321 = _(numericDictionary).some(''); + result_321 = _(numericDictionary).some({ a: 42 }); + } + { + var result_322; + result_322 = _(array).chain().some(); + result_322 = _(array).chain().some(listIterator); + result_322 = _(array).chain().some(listIterator, any); + result_322 = _(array).chain().some(''); + result_322 = _(array).chain().some({ a: 42 }); + result_322 = _(list).chain().some(); + result_322 = _(list).chain().some(listIterator); + result_322 = _(list).chain().some(listIterator, any); + result_322 = _(list).chain().some(''); + result_322 = _(list).chain().some({ a: 42 }); + result_322 = _(dictionary).chain().some(); + result_322 = _(dictionary).chain().some(dictionaryIterator); + result_322 = _(dictionary).chain().some(dictionaryIterator, any); + result_322 = _(dictionary).chain().some(''); + result_322 = _(dictionary).chain().some({ a: 42 }); + result_322 = _(numericDictionary).chain().some(); + result_322 = _(numericDictionary).chain().some(numericDictionaryIterator); + result_322 = _(numericDictionary).chain().some(numericDictionaryIterator, any); + result_322 = _(numericDictionary).chain().some(''); + result_322 = _(numericDictionary).chain().some({ a: 42 }); + } +})(TestSome || (TestSome = {})); +// _.sortBy +var TestSortBy; +(function (TestSortBy) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + { + var result_323; + result_323 = _.sortBy(array); + result_323 = _.sortBy(array, listIterator); + result_323 = _.sortBy(array, ''); + result_323 = _.sortBy(array, { a: 42 }); + result_323 = _.sortBy(list); + result_323 = _.sortBy(list, listIterator); + result_323 = _.sortBy(list, ''); + result_323 = _.sortBy(list, { a: 42 }); + result_323 = _.sortBy(dictionary); + result_323 = _.sortBy(dictionary, dictionaryIterator); + result_323 = _.sortBy(dictionary, ''); + result_323 = _.sortBy(dictionary, { a: 42 }); + } + { + var result_324; + result_324 = _(array).sortBy(); + result_324 = _(array).sortBy(listIterator); + result_324 = _(array).sortBy(''); + result_324 = _(array).sortBy({ a: 42 }); + result_324 = _(list).sortBy(); + result_324 = _(list).sortBy(listIterator); + result_324 = _(list).sortBy(''); + result_324 = _(list).sortBy({ a: 42 }); + result_324 = _(dictionary).sortBy(); + result_324 = _(dictionary).sortBy(dictionaryIterator); + result_324 = _(dictionary).sortBy(''); + result_324 = _(dictionary).sortBy({ a: 42 }); + } + { + var result_325; + result_325 = _(array).chain().sortBy(); + result_325 = _(array).chain().sortBy(listIterator); + result_325 = _(array).chain().sortBy(''); + result_325 = _(array).chain().sortBy({ a: 42 }); + result_325 = _(list).chain().sortBy(); + result_325 = _(list).chain().sortBy(listIterator); + result_325 = _(list).chain().sortBy(''); + result_325 = _(list).chain().sortBy({ a: 42 }); + result_325 = _(dictionary).chain().sortBy(); + result_325 = _(dictionary).chain().sortBy(dictionaryIterator); + result_325 = _(dictionary).chain().sortBy(''); + result_325 = _(dictionary).chain().sortBy({ a: 42 }); + } +})(TestSortBy || (TestSortBy = {})); +result = _.sortBy(stoogesAges, function (stooge) { return Math.sin(stooge.age); }, function (stooge) { return stooge.name.slice(1); }); +result = _.sortBy(stoogesAges, ['name', 'age']); +result = _.sortBy(stoogesAges, 'name', function (stooge) { return Math.sin(stooge.age); }); +result = _(foodsOrganic).sortBy('organic', function (food) { return food.name; }, { organic: true }).value(); +// _.orderBy +var TestorderBy; +(function (TestorderBy) { + var array; + var list; + var numericDictionary; + var dictionary; + var orders; + { + var iteratees; + var result_326; + result_326 = _.orderBy('acbd', iteratees); + result_326 = _.orderBy('acbd', iteratees, orders); + } + { + var iteratees; + var result_327; + result_327 = _.orderBy(array, iteratees); + result_327 = _.orderBy(array, iteratees, orders); + result_327 = _.orderBy(array, iteratees); + result_327 = _.orderBy(array, iteratees, orders); + result_327 = _.orderBy(list, iteratees); + result_327 = _.orderBy(list, iteratees, orders); + result_327 = _.orderBy(list, iteratees); + result_327 = _.orderBy(list, iteratees, orders); + result_327 = _.orderBy(numericDictionary, iteratees); + result_327 = _.orderBy(numericDictionary, iteratees, orders); + result_327 = _.orderBy(numericDictionary, iteratees); + result_327 = _.orderBy(numericDictionary, iteratees, orders); + result_327 = _.orderBy(dictionary, iteratees); + result_327 = _.orderBy(dictionary, iteratees, orders); + result_327 = _.orderBy(dictionary, iteratees); + result_327 = _.orderBy(dictionary, iteratees, orders); + } + { + var iteratees; + var result_328; + result_328 = _(array).orderBy(iteratees); + result_328 = _(array).orderBy(iteratees, orders); + result_328 = _(list).orderBy(iteratees); + result_328 = _(list).orderBy(iteratees, orders); + result_328 = _(list).orderBy(iteratees); + result_328 = _(list).orderBy(iteratees, orders); + result_328 = _(numericDictionary).orderBy(iteratees); + result_328 = _(numericDictionary).orderBy(iteratees, orders); + result_328 = _(numericDictionary).orderBy(iteratees); + result_328 = _(numericDictionary).orderBy(iteratees, orders); + result_328 = _(dictionary).orderBy(iteratees); + result_328 = _(dictionary).orderBy(iteratees, orders); + result_328 = _(dictionary).orderBy(iteratees); + result_328 = _(dictionary).orderBy(iteratees, orders); + } + { + var iteratees; + var result_329; + result_329 = _(array).chain().orderBy(iteratees); + result_329 = _(array).chain().orderBy(iteratees, orders); + result_329 = _(list).chain().orderBy(iteratees); + result_329 = _(list).chain().orderBy(iteratees, orders); + result_329 = _(list).chain().orderBy(iteratees); + result_329 = _(list).chain().orderBy(iteratees, orders); + result_329 = _(numericDictionary).chain().orderBy(iteratees); + result_329 = _(numericDictionary).chain().orderBy(iteratees, orders); + result_329 = _(numericDictionary).chain().orderBy(iteratees); + result_329 = _(numericDictionary).chain().orderBy(iteratees, orders); + result_329 = _(dictionary).chain().orderBy(iteratees); + result_329 = _(dictionary).chain().orderBy(iteratees, orders); + result_329 = _(dictionary).chain().orderBy(iteratees); + result_329 = _(dictionary).chain().orderBy(iteratees, orders); + } +})(TestorderBy || (TestorderBy = {})); +/******** + * Date * + ********/ +var TestNow; +(function (TestNow) { + { + var result_330; + result_330 = _.now(); + result_330 = _(42).now(); + result_330 = _([]).now(); + result_330 = _({}).now(); + } + { + var result_331; + result_331 = _(42).chain().now(); + result_331 = _([]).chain().now(); + result_331 = _({}).chain().now(); + } +})(TestNow || (TestNow = {})); +/************* + * Functions * + *************/ +// _.after +var TestAfter; +(function (TestAfter) { + var func; + { + var result_332; + _.after(42, func); + } + { + var result_333; + _(42).after(func); + } + { + var result_334; + _(42).chain().after(func); + } +})(TestAfter || (TestAfter = {})); +// _.ary +var TestAry; +(function (TestAry) { + var func; + { + var result_335; + result_335 = _.ary(func); + result_335 = _.ary(func, 2); + result_335 = _.ary(func); + result_335 = _.ary(func, 2); + } + { + var result_336; + result_336 = _(func).ary(); + result_336 = _(func).ary(2); + } + { + var result_337; + result_337 = _(func).chain().ary(); + result_337 = _(func).chain().ary(2); + } +})(TestAry || (TestAry = {})); +// _.before +var TestBefore; +(function (TestBefore) { + var func; + { + var result_338; + _.before(42, func); + } + { + var result_339; + _(42).before(func); + } + { + var result_340; + _(42).chain().before(func); + } +})(TestBefore || (TestBefore = {})); +// _.bind +var TestBind; +(function (TestBind) { + var func; + { + var result_341; + result_341 = _.bind(func, any); + result_341 = _.bind(func, any); + } + { + var result_342; + result_342 = _.bind(func, any, 42); + result_342 = _.bind(func, any, 42); + } + { + var result_343; + result_343 = _.bind(func, any, 42, ''); + result_343 = _.bind(func, any, 42, ''); + } + { + var result_344; + result_344 = _(func).bind(any); + } + { + var result_345; + result_345 = _(func).bind(any, 42); + } + { + var result_346; + result_346 = _(func).bind(any, 42, ''); + } + { + var result_347; + result_347 = _(func).chain().bind(any); + } + { + var result_348; + result_348 = _(func).chain().bind(any, 42); + } + { + var result_349; + result_349 = _(func).chain().bind(any, 42, ''); + } +})(TestBind || (TestBind = {})); +// _.bindAll +var TestBindAll; +(function (TestBindAll) { + var object; + { + var result_350; + result_350 = _.bindAll(object); + result_350 = _.bindAll(object, 'c'); + result_350 = _.bindAll(object, ['b'], 'c'); + result_350 = _.bindAll(object, 'a', ['b'], 'c'); + } + { + var result_351; + result_351 = _(object).bindAll(); + result_351 = _(object).bindAll('c'); + result_351 = _(object).bindAll(['b'], 'c'); + result_351 = _(object).bindAll('a', ['b'], 'c'); + } + { + var result_352; + result_352 = _(object).chain().bindAll(); + result_352 = _(object).chain().bindAll('c'); + result_352 = _(object).chain().bindAll(['b'], 'c'); + result_352 = _(object).chain().bindAll('a', ['b'], 'c'); + } +})(TestBindAll || (TestBindAll = {})); +// _.bindKey +var TestBindKey; +(function (TestBindKey) { + var object; + { + var result_353; + result_353 = _.bindKey(object, 'foo'); + result_353 = _.bindKey(object, 'foo'); + } + { + var result_354; + result_354 = _.bindKey(object, 'foo', 42); + result_354 = _.bindKey(object, 'foo', 42); + } + { + var result_355; + result_355 = _.bindKey(object, 'foo', 42, ''); + result_355 = _.bindKey(object, 'foo', 42, ''); + } + { + var result_356; + result_356 = _(object).bindKey('foo'); + } + { + var result_357; + result_357 = _(object).bindKey('foo', 42); + } + { + var result_358; + result_358 = _(object).bindKey('foo', 42, ''); + } + { + var result_359; + result_359 = _(object).chain().bindKey('foo'); + } + { + var result_360; + result_360 = _(object).chain().bindKey('foo', 42); + } + { + var result_361; + result_361 = _(object).chain().bindKey('foo', 42, ''); + } +})(TestBindKey || (TestBindKey = {})); +var createCallbackObj = { name: 'Joe' }; +result = _.createCallback('name'); +result = _.createCallback(createCallbackObj); +result = _('name').createCallback(); +result = _(createCallbackObj).createCallback(); +// _.curry +var testCurryFn = function (a, b, c) { return [a, b, c]; }; +var curryResult0; +var curryResult1; +var curryResult2; +curryResult0 = _.curry(testCurryFn)(1, 2, 3); +curryResult1 = _.curry(testCurryFn)(1, 2); +curryResult0 = _.curry(testCurryFn)(1, 2)(3); +curryResult0 = _.curry(testCurryFn)(1)(2)(3); +curryResult2 = _.curry(testCurryFn)(1); +curryResult1 = _.curry(testCurryFn)(1)(2); +curryResult0 = _.curry(testCurryFn)(1)(2)(3); +curryResult0 = _.curry(testCurryFn)(1)(2, 3); +curryResult0 = _(testCurryFn).curry().value()(1, 2, 3); +curryResult2 = _(testCurryFn).curry().value()(1); +var curryResult3; +var curryResult4; +var curryResult5; +var curryResult6; +curryResult3 = _.curry(testCurry2)("1", 2, true); +curryResult3 = _.curry(testCurry2)("1", 2)(true); +curryResult3 = _.curry(testCurry2)("1")(2, true); +curryResult3 = _.curry(testCurry2)("1")(2)(true); +curryResult4 = _.curry(testCurry2)("1", 2); +curryResult4 = _.curry(testCurry2)("1")(2); +curryResult5 = _.curry(testCurry2)("1"); +curryResult6 = _.curry(testCurry2); +// _.curryRight +var testCurryRightFn = function (a, b, c) { return [a, b, c]; }; +curryResult0 = _.curryRight(testCurryRightFn)(1, 2, 3); +curryResult2 = _.curryRight(testCurryRightFn)(1); +curryResult0 = _(testCurryRightFn).curryRight().value()(1, 2, 3); +curryResult2 = _(testCurryRightFn).curryRight().value()(1); +var curryResult7; +var curryResult8; +var curryResult9; +curryResult3 = _.curryRight(testCurry2)(true, 2, "1"); +curryResult3 = _.curryRight(testCurry2)(true, 2)("1"); +curryResult3 = _.curryRight(testCurry2)(true)(2, "1"); +curryResult3 = _.curryRight(testCurry2)(true)(2)("1"); +curryResult7 = _.curryRight(testCurry2)(true, 2); +curryResult7 = _.curryRight(testCurry2)(true)(2); +curryResult8 = _.curryRight(testCurry2)(true); +curryResult9 = _.curryRight(testCurry2); +// _.debounce +var TestDebounce; +(function (TestDebounce) { + var func; + var options; + { + var result_362; + result_362 = _.debounce(func); + result_362 = _.debounce(func, 42); + result_362 = _.debounce(func, 42, options); + } + { + var result_363; + result_363 = _(func).debounce(); + result_363 = _(func).debounce(42); + result_363 = _(func).debounce(42, options); + } + { + var result_364; + result_364 = _(func).chain().debounce(); + result_364 = _(func).chain().debounce(42); + result_364 = _(func).chain().debounce(42, options); + } +})(TestDebounce || (TestDebounce = {})); +// _.defer +var TestDefer; +(function (TestDefer) { + var func; + { + var result_365; + result_365 = _.defer(func); + result_365 = _.defer(func, any); + result_365 = _.defer(func, any, any); + result_365 = _.defer(func, any, any, any); + } + { + var result_366; + result_366 = _(func).defer(); + result_366 = _(func).defer(any); + result_366 = _(func).defer(any, any); + result_366 = _(func).defer(any, any, any); + } + { + var result_367; + result_367 = _(func).chain().defer(); + result_367 = _(func).chain().defer(any); + result_367 = _(func).chain().defer(any, any); + result_367 = _(func).chain().defer(any, any, any); + } +})(TestDefer || (TestDefer = {})); +// _.delay +var TestDelay; +(function (TestDelay) { + var func; + { + var result_368; + result_368 = _.delay(func, 1); + result_368 = _.delay(func, 1, 2); + result_368 = _.delay(func, 1, 2, ''); + } + { + var result_369; + result_369 = _(func).delay(1); + result_369 = _(func).delay(1, 2); + result_369 = _(func).delay(1, 2, ''); + } + { + var result_370; + result_370 = _(func).chain().delay(1); + result_370 = _(func).chain().delay(1, 2); + result_370 = _(func).chain().delay(1, 2, ''); + } +})(TestDelay || (TestDelay = {})); +// _.flip +var TestFlip; +(function (TestFlip) { + var func; + { + var result_371; + result_371 = _.flip(func); + } + { + var result_372; + result_372 = _(func).flip(); + } + { + var result_373; + result_373 = _(func).chain().flip(); + } +})(TestFlip || (TestFlip = {})); +// _.flow +var TestFlow; +(function (TestFlow) { + var Fn1; + var Fn2; + { + var result_374; + result_374 = _.flow(Fn1, Fn2); + result_374 = _.flow(Fn1, Fn1, Fn2); + result_374 = _.flow(Fn1, Fn1, Fn1, Fn2); + } + { + var result_375; + result_375 = _(Fn1).flow(Fn2); + result_375 = _(Fn1).flow(Fn1, Fn2); + result_375 = _(Fn1).flow(Fn1, Fn1, Fn2); + } + { + var result_376; + result_376 = _(Fn1).chain().flow(Fn2); + result_376 = _(Fn1).chain().flow(Fn1, Fn2); + result_376 = _(Fn1).chain().flow(Fn1, Fn1, Fn2); + } +})(TestFlow || (TestFlow = {})); +// _.flowRight +var TestFlowRight; +(function (TestFlowRight) { + var Fn1; + var Fn2; + { + var result_377; + result_377 = _.flowRight(Fn1, Fn2); + result_377 = _.flowRight(Fn1, Fn1, Fn2); + result_377 = _.flowRight(Fn1, Fn1, Fn1, Fn2); + } + { + var result_378; + result_378 = _(Fn1).flowRight(Fn2); + result_378 = _(Fn1).flowRight(Fn1, Fn2); + result_378 = _(Fn1).flowRight(Fn1, Fn1, Fn2); + } + { + var result_379; + result_379 = _(Fn1).chain().flowRight(Fn2); + result_379 = _(Fn1).chain().flowRight(Fn1, Fn2); + result_379 = _(Fn1).chain().flowRight(Fn1, Fn1, Fn2); + } +})(TestFlowRight || (TestFlowRight = {})); +// _.memoize +var testMemoizedFunction; +result = testMemoizedFunction.cache; +var testMemoizeFn; +var testMemoizeResolverFn; +result = _.memoize(testMemoizeFn); +result = _.memoize(testMemoizeFn, testMemoizeResolverFn); +result = (_(testMemoizeFn).memoize().value()); +result = (_(testMemoizeFn).memoize(testMemoizeResolverFn).value()); +// _.overArgs +var TestOverArgs; +(function (TestOverArgs) { + var func1; + var func2; + var transform1; + var transform2; + { + var result_380; + result_380 = _.overArgs(func1, transform1); + result_380 = _.overArgs(func1, [transform1]); + } + { + var result_381; + result_381 = _.overArgs(func2, transform1, transform2); + result_381 = _.overArgs(func2, [transform1, transform2]); + } + { + var result_382; + result_382 = _(func1).overArgs(transform1); + result_382 = _(func1).overArgs([transform1]); + } + { + var result_383; + result_383 = _(func2).overArgs(transform1, transform2); + result_383 = _(func2).overArgs([transform1, transform2]); + } + { + var result_384; + result_384 = _(func1).chain().overArgs(transform1); + result_384 = _(func1).chain().overArgs([transform1]); + } + { + var result_385; + result_385 = _(func2).chain().overArgs(transform1, transform2); + result_385 = _(func2).chain().overArgs([transform1, transform2]); + } +})(TestOverArgs || (TestOverArgs = {})); +// _.negate +var TestNegate; +(function (TestNegate) { + var predicate = function (a1, a2) { return a1 > a2; }; + { + var result_386; + result_386 = _.negate(predicate); + result_386 = _.negate(predicate); + } + { + var result_387; + result_387 = _(predicate).negate(); + result_387 = _(predicate).negate(); + } + { + var result_388; + result_388 = _(predicate).chain().negate(); + result_388 = _(predicate).chain().negate(); + } +})(TestNegate || (TestNegate = {})); +// _.once +var TestOnce; +(function (TestOnce) { + var func; + { + var result_389; + result_389 = _.once(func); + } + { + var result_390; + result_390 = _(func).once(); + } + { + var result_391; + result_391 = _(func).chain().once(); + } +})(TestOnce || (TestOnce = {})); +var greetPartial = function (greeting, name) { return greeting + ' ' + name; }; +var hi = _.partial(greetPartial, 'hi'); +hi('moe'); +var defaultsDeep = _.partialRight(_.merge, _.defaults); +var optionsPartialRight = { + 'variable': 'data', + 'imports': { 'jq': $ } +}; +defaultsDeep(optionsPartialRight, _.templateSettings); +//_.rearg +var testReargFn = function (a, b, c) { return [a, b, c]; }; +result = (_.rearg(testReargFn, 2, 0, 1))('b', 'c', 'a'); +result = (_.rearg(testReargFn, [2, 0, 1]))('b', 'c', 'a'); +result = (_(testReargFn).rearg(2, 0, 1).value())('b', 'c', 'a'); +result = (_(testReargFn).rearg([2, 0, 1]).value())('b', 'c', 'a'); +// _.rest +var TestRest; +(function (TestRest) { + var func; + { + var result_392; + result_392 = _.rest(func); + result_392 = _.rest(func, 1); + result_392 = _.rest(func); + result_392 = _.rest(func, 1); + } + { + var result_393; + result_393 = _(func).rest(); + result_393 = _(func).rest(1); + } + { + var result_394; + result_394 = _(func).chain().rest(); + result_394 = _(func).chain().rest(1); + } +})(TestRest || (TestRest = {})); +//_.spread +var TestSpread; +(function (TestSpread) { + var func; + { + var result_395; + result_395 = _.spread(func); + result_395 = _.spread(func); + } + { + var result_396; + result_396 = _(func).spread(); + } + { + var result_397; + result_397 = _(func).chain().spread(); + } +})(TestSpread || (TestSpread = {})); +// _.throttle +var TestThrottle; +(function (TestThrottle) { + var func; + var options; + { + var result_398; + result_398 = _.throttle(func); + result_398 = _.throttle(func, 42); + result_398 = _.throttle(func, 42, options); + } + { + var result_399; + result_399 = _(func).throttle(); + result_399 = _(func).throttle(42); + result_399 = _(func).throttle(42, options); + } + { + var result_400; + result_400 = _(func).chain().throttle(); + result_400 = _(func).chain().throttle(42); + result_400 = _(func).chain().throttle(42, options); + } +})(TestThrottle || (TestThrottle = {})); +// _.unary +var TestUnary; +(function (TestUnary) { + var func; + { + var result_401; + result_401 = _.unary(func); + } + { + var result_402; + result_402 = _(func).unary(); + } + { + var result_403; + result_403 = _(func).chain().unary(); + } +})(TestUnary || (TestUnary = {})); +// _.wrap +var TestWrap; +(function (TestWrap) { + { + var value; + var wrapper; + var result_404; + result_404 = _.wrap(value, wrapper); + result_404 = _.wrap(value, wrapper); + result_404 = _.wrap(value, wrapper); + } + { + var value; + var wrapper; + var result_405; + result_405 = _(value).wrap(wrapper); + result_405 = _(value).wrap(wrapper); + } + { + var value; + var wrapper; + var result_406; + result_406 = _(value).wrap(wrapper); + result_406 = _(value).wrap(wrapper); + } + { + var value; + var wrapper; + var result_407; + result_407 = _(value).wrap(wrapper); + result_407 = _(value).wrap(wrapper); + } + { + var value; + var wrapper; + var result_408; + result_408 = _(value).chain().wrap(wrapper); + result_408 = _(value).chain().wrap(wrapper); + } + { + var value; + var wrapper; + var result_409; + result_409 = _(value).chain().wrap(wrapper); + result_409 = _(value).chain().wrap(wrapper); + } + { + var value; + var wrapper; + var result_410; + result_410 = _(value).chain().wrap(wrapper); + result_410 = _(value).chain().wrap(wrapper); + } +})(TestWrap || (TestWrap = {})); +/******** + * Lang * + ********/ +// _.clone +{ + var result_411; + result_411 = _.clone(42); + result_411 = _(42).clone(); +} +{ + var result_412; + result_412 = _.clone([]); + result_412 = _([]).clone(); +} +{ + var result_413; + result_413 = _.clone({ a: { b: 2 } }); + result_413 = _({ a: { b: 2 } }).clone(); +} +// _.cloneDeep +{ + var result_414; + result_414 = _.cloneDeep(42); + result_414 = _(42).cloneDeep(); +} +{ + var result_415; + result_415 = _.cloneDeep([]); + result_415 = _([]).cloneDeep(); +} +{ + var result_416; + result_416 = _.cloneDeep({ a: { b: 2 } }); + result_416 = _({ a: { b: 2 } }).cloneDeep(); +} +var testCloneCustomizerFn; +{ + var result_417; + result_417 = _.clone(42, testCloneCustomizerFn); + result_417 = _(42).clone(testCloneCustomizerFn); +} +{ + var result_418; + result_418 = _.clone([], testCloneCustomizerFn); + result_418 = _([]).clone(testCloneCustomizerFn); +} +{ + var result_419; + result_419 = _.clone({ a: { b: 2 } }, testCloneCustomizerFn); + result_419 = _({ a: { b: 2 } }).clone(testCloneCustomizerFn); +} +var testCloneDeepCustomizerFn; +{ + var result_420; + result_420 = _.cloneDeep(42, testCloneDeepCustomizerFn); + result_420 = _(42).cloneDeep(testCloneDeepCustomizerFn); +} +{ + var result_421; + result_421 = _.cloneDeep([], testCloneDeepCustomizerFn); + result_421 = _([]).cloneDeep(testCloneDeepCustomizerFn); +} +{ + var result_422; + result_422 = _.cloneDeep({ a: { b: 2 } }, testCloneDeepCustomizerFn); + result_422 = _({ a: { b: 2 } }).cloneDeep(testCloneDeepCustomizerFn); +} +// _.eq +var TestEq; +(function (TestEq) { + var customizer; + { + var result_423; + result_423 = _.eq(any, any); + result_423 = _(any).eq(any); + } + { + var result_424; + result_424 = _(any).chain().eq(any); + } +})(TestEq || (TestEq = {})); +// _.gt +var TestGt; +(function (TestGt) { + { + var result_425; + result_425 = _.gt(any, any); + result_425 = _(1).gt(any); + result_425 = _([]).gt(any); + result_425 = _({}).gt(any); + } + { + var result_426; + result_426 = _(1).chain().gt(any); + result_426 = _([]).chain().gt(any); + result_426 = _({}).chain().gt(any); + } +})(TestGt || (TestGt = {})); +// _.gte +var TestGte; +(function (TestGte) { + { + var result_427; + result_427 = _.gte(any, any); + result_427 = _(1).gte(any); + result_427 = _([]).gte(any); + result_427 = _({}).gte(any); + } + { + var result_428; + result_428 = _(1).chain().gte(any); + result_428 = _([]).chain().gte(any); + result_428 = _({}).chain().gte(any); + } +})(TestGte || (TestGte = {})); +// _.isArguments +var TestisArguments; +(function (TestisArguments) { + { + var value; + if (_.isArguments(value)) { + var result_429 = value; + } + else { + var result_430 = value; + } + } + { + var result_431; + result_431 = _.isArguments(any); + result_431 = _(1).isArguments(); + result_431 = _([]).isArguments(); + result_431 = _({}).isArguments(); + } + { + var result_432; + result_432 = _(1).chain().isArguments(); + result_432 = _([]).chain().isArguments(); + result_432 = _({}).chain().isArguments(); + } +})(TestisArguments || (TestisArguments = {})); +// _.isArray +var TestIsArray; +(function (TestIsArray) { + { + var value; + if (_.isArray(value)) { + var result_433 = value; + } + else { + if (_.isArray(value)) { + var result_434 = value; + } + else { + var result_435 = value; + } + } + } + { + var result_436; + result_436 = _.isArray(any); + result_436 = _(1).isArray(); + result_436 = _([]).isArray(); + result_436 = _({}).isArray(); + } + { + var result_437; + result_437 = _(1).chain().isArray(); + result_437 = _([]).chain().isArray(); + result_437 = _({}).chain().isArray(); + } +})(TestIsArray || (TestIsArray = {})); +// _.isArrayLike +var TestIsArrayLike; +(function (TestIsArrayLike) { + { + var value; + if (_.isArrayLike(value)) { + var result_438 = value; + } + else { + if (_.isArrayLike(value)) { + var result_439 = value; + } + else { + var result_440 = value; + } + } + } + { + var result_441; + result_441 = _.isArrayLike(any); + result_441 = _(1).isArrayLike(); + result_441 = _([]).isArrayLike(); + result_441 = _({}).isArrayLike(); + } + { + var result_442; + result_442 = _(1).chain().isArrayLike(); + result_442 = _([]).chain().isArrayLike(); + result_442 = _({}).chain().isArrayLike(); + } +})(TestIsArrayLike || (TestIsArrayLike = {})); +// _.isArrayLikeObject +var TestIsArrayLikeObject; +(function (TestIsArrayLikeObject) { + { + var value; + if (_.isArrayLikeObject(value)) { + var result_443 = value; + } + else { + if (_.isArrayLikeObject(value)) { + var result_444 = value; + } + else { + var result_445 = value; + } + } + } + { + var result_446; + result_446 = _.isArrayLikeObject(any); + result_446 = _(1).isArrayLikeObject(); + result_446 = _([]).isArrayLikeObject(); + result_446 = _({}).isArrayLikeObject(); + } + { + var result_447; + result_447 = _(1).chain().isArrayLikeObject(); + result_447 = _([]).chain().isArrayLikeObject(); + result_447 = _({}).chain().isArrayLikeObject(); + } +})(TestIsArrayLikeObject || (TestIsArrayLikeObject = {})); +// _.isBoolean +var TestIsBoolean; +(function (TestIsBoolean) { + { + var value; + if (_.isBoolean(value)) { + var result_448 = value; + } + else { + var result_449 = value; + } + } + { + var result_450; + result_450 = _.isBoolean(any); + result_450 = _(1).isBoolean(); + result_450 = _([]).isBoolean(); + result_450 = _({}).isBoolean(); + } + { + var result_451; + result_451 = _(1).chain().isBoolean(); + result_451 = _([]).chain().isBoolean(); + result_451 = _({}).chain().isBoolean(); + } +})(TestIsBoolean || (TestIsBoolean = {})); +// _.isDate +var TestIsBoolean; +(function (TestIsBoolean) { + { + var value; + if (_.isDate(value)) { + var result_452 = value; + } + else { + var result_453 = value; + } + } + { + var result_454; + result_454 = _.isDate(any); + result_454 = _(42).isDate(); + result_454 = _([]).isDate(); + result_454 = _({}).isDate(); + } + { + var result_455; + result_455 = _(42).chain().isDate(); + result_455 = _([]).chain().isDate(); + result_455 = _({}).chain().isDate(); + } +})(TestIsBoolean || (TestIsBoolean = {})); +// _.isElement +var TestIsElement; +(function (TestIsElement) { + { + var result_456; + result_456 = _.isElement(any); + result_456 = _(42).isElement(); + result_456 = _([]).isElement(); + result_456 = _({}).isElement(); + } + { + var result_457; + result_457 = _(42).chain().isElement(); + result_457 = _([]).chain().isElement(); + result_457 = _({}).chain().isElement(); + } +})(TestIsElement || (TestIsElement = {})); +// _.isEmpty +result = _.isEmpty([1, 2, 3]); +result = _.isEmpty({}); +result = _.isEmpty(''); +result = _([1, 2, 3]).isEmpty(); +result = _({}).isEmpty(); +result = _('').isEmpty(); +// _.isEqual +var TestIsEqual; +(function (TestIsEqual) { + var customizer; + { + var result_458; + result_458 = _.isEqual(any, any); + result_458 = _(any).isEqual(any); + } + { + var result_459; + result_459 = _(any).chain().isEqual(any); + } +})(TestIsEqual || (TestIsEqual = {})); +// _.isEqualWith +var TestIsEqualWith; +(function (TestIsEqualWith) { + var customizer; + { + var result_460; + result_460 = _.isEqualWith(any, any, customizer); + result_460 = _(any).isEqualWith(any, customizer); + } + { + var result_461; + result_461 = _(any).chain().isEqualWith(any, customizer); + } +})(TestIsEqualWith || (TestIsEqualWith = {})); +// _.isError +var TestIsError; +(function (TestIsError) { + { + var value; + if (_.isError(value)) { + var result_462 = value; + } + else { + var result_463 = value; + } + } + { + var CustomError = (function (_super) { + __extends(CustomError, _super); + function CustomError() { + _super.apply(this, arguments); + } + return CustomError; + })(Error); + var value; + if (_.isError(value)) { + var result_464 = value; + } + else { + var result_465 = value; + } + } + { + var result_466; + result_466 = _.isError(any); + result_466 = _(1).isError(); + result_466 = _([]).isError(); + result_466 = _({}).isError(); + } + { + var result_467; + result_467 = _(1).chain().isError(); + result_467 = _([]).chain().isError(); + result_467 = _({}).chain().isError(); + } +})(TestIsError || (TestIsError = {})); +// _.isFinite +var TestIsFinite; +(function (TestIsFinite) { + { + var result_468; + result_468 = _.isFinite(any); + result_468 = _(1).isFinite(); + result_468 = _([]).isFinite(); + result_468 = _({}).isFinite(); + } + { + var result_469; + result_469 = _(1).chain().isFinite(); + result_469 = _([]).chain().isFinite(); + result_469 = _({}).chain().isFinite(); + } +})(TestIsFinite || (TestIsFinite = {})); +// _.isFunction +var TestIsFunction; +(function (TestIsFunction) { + { + var value; + if (_.isFunction(value)) { + var result_470 = value; + } + else { + var result_471 = value; + } + } + { + var result_472; + result_472 = _.isFunction(any); + result_472 = _(1).isFunction(); + result_472 = _([]).isFunction(); + result_472 = _({}).isFunction(); + } + { + var result_473; + result_473 = _(1).chain().isFunction(); + result_473 = _([]).chain().isFunction(); + result_473 = _({}).chain().isFunction(); + } +})(TestIsFunction || (TestIsFunction = {})); +// _.isInteger +var TestIsInteger; +(function (TestIsInteger) { + { + var result_474; + result_474 = _.isInteger(any); + result_474 = _(1).isInteger(); + result_474 = _([]).isInteger(); + result_474 = _({}).isInteger(); + } + { + var result_475; + result_475 = _(1).chain().isInteger(); + result_475 = _([]).chain().isInteger(); + result_475 = _({}).chain().isInteger(); + } +})(TestIsInteger || (TestIsInteger = {})); +// _.isLength +var TestIsLength; +(function (TestIsLength) { + { + var result_476; + result_476 = _.isLength(any); + result_476 = _(1).isLength(); + result_476 = _([]).isLength(); + result_476 = _({}).isLength(); + } + { + var result_477; + result_477 = _(1).chain().isLength(); + result_477 = _([]).chain().isLength(); + result_477 = _({}).chain().isLength(); + } +})(TestIsLength || (TestIsLength = {})); +// _.isMatch +var TestIsMatch; +(function (TestIsMatch) { + var testIsMatchCustiomizerFn; + var result; + result = _.isMatch({}, {}); + result = _({}).isMatch({}); +})(TestIsMatch || (TestIsMatch = {})); +// _.isMatchWith +var TestIsMatchWith; +(function (TestIsMatchWith) { + var testIsMatchCustiomizerFn; + var result; + result = _.isMatchWith({}, {}, testIsMatchCustiomizerFn); + result = _({}).isMatchWith({}, testIsMatchCustiomizerFn); +})(TestIsMatchWith || (TestIsMatchWith = {})); +// _.isNaN +var TestIsNaN; +(function (TestIsNaN) { + { + var result_478; + result_478 = _.isNaN(any); + result_478 = _(1).isNaN(); + result_478 = _([]).isNaN(); + result_478 = _({}).isNaN(); + } + { + var result_479; + result_479 = _(1).chain().isNaN(); + result_479 = _([]).chain().isNaN(); + result_479 = _({}).chain().isNaN(); + } +})(TestIsNaN || (TestIsNaN = {})); +// _.isNative +var TestIsNative; +(function (TestIsNative) { + { + var value; + if (_.isNative(value)) { + var result_480 = value; + } + else { + var result_481 = value; + } + } + { + var result_482; + result_482 = _.isNative(any); + result_482 = _(1).isNative(); + result_482 = _([]).isNative(); + result_482 = _({}).isNative(); + } + { + var result_483; + result_483 = _(1).chain().isNative(); + result_483 = _([]).chain().isNative(); + result_483 = _({}).chain().isNative(); + } +})(TestIsNative || (TestIsNative = {})); +// _.isNil +var TestIsNil; +(function (TestIsNil) { + { + var result_484; + result_484 = _.isNil(any); + result_484 = _(1).isNil(); + result_484 = _([]).isNil(); + result_484 = _({}).isNil(); + } + { + var result_485; + result_485 = _(1).chain().isNil(); + result_485 = _([]).chain().isNil(); + result_485 = _({}).chain().isNil(); + } +})(TestIsNil || (TestIsNil = {})); +// _.isNull +var TestIsNull; +(function (TestIsNull) { + { + var result_486; + result_486 = _.isNull(any); + result_486 = _(1).isNull(); + result_486 = _([]).isNull(); + result_486 = _({}).isNull(); + } + { + var result_487; + result_487 = _(1).chain().isNull(); + result_487 = _([]).chain().isNull(); + result_487 = _({}).chain().isNull(); + } +})(TestIsNull || (TestIsNull = {})); +// _.isNumber +var TestIsNumber; +(function (TestIsNumber) { + { + var value; + if (_.isNumber(value)) { + var result_488 = value; + } + else { + var result_489 = value; + } + } + { + var result_490; + result_490 = _.isNumber(any); + result_490 = _(1).isNumber(); + result_490 = _([]).isNumber(); + result_490 = _({}).isNumber(); + } + { + var result_491; + result_491 = _(1).chain().isNumber(); + result_491 = _([]).chain().isNumber(); + result_491 = _({}).chain().isNumber(); + } +})(TestIsNumber || (TestIsNumber = {})); +// _.isObject +var TestIsObject; +(function (TestIsObject) { + { + var result_492; + result_492 = _.isObject(any); + result_492 = _(1).isObject(); + result_492 = _([]).isObject(); + result_492 = _({}).isObject(); + } + { + var result_493; + result_493 = _(1).chain().isObject(); + result_493 = _([]).chain().isObject(); + result_493 = _({}).chain().isObject(); + } +})(TestIsObject || (TestIsObject = {})); +// _.isObjectLike +var TestIsObjectLike; +(function (TestIsObjectLike) { + { + var result_494; + result_494 = _.isObjectLike(any); + result_494 = _(1).isObjectLike(); + result_494 = _([]).isObjectLike(); + result_494 = _({}).isObjectLike(); + } + { + var result_495; + result_495 = _(1).chain().isObjectLike(); + result_495 = _([]).chain().isObjectLike(); + result_495 = _({}).chain().isObjectLike(); + } +})(TestIsObjectLike || (TestIsObjectLike = {})); +// _.isPlainObject +var TestIsPlainObject; +(function (TestIsPlainObject) { + { + var result_496; + result_496 = _.isPlainObject(any); + result_496 = _(1).isPlainObject(); + result_496 = _([]).isPlainObject(); + result_496 = _({}).isPlainObject(); + } + { + var result_497; + result_497 = _(1).chain().isPlainObject(); + result_497 = _([]).chain().isPlainObject(); + result_497 = _({}).chain().isPlainObject(); + } +})(TestIsPlainObject || (TestIsPlainObject = {})); +// _.isRegExp +var TestIsRegExp; +(function (TestIsRegExp) { + { + var value; + if (_.isRegExp(value)) { + var result_498 = value; + } + else { + var result_499 = value; + } + } + { + var result_500; + result_500 = _.isRegExp(any); + result_500 = _(1).isRegExp(); + result_500 = _([]).isRegExp(); + result_500 = _({}).isRegExp(); + } + { + var result_501; + result_501 = _(1).chain().isRegExp(); + result_501 = _([]).chain().isRegExp(); + result_501 = _({}).chain().isRegExp(); + } +})(TestIsRegExp || (TestIsRegExp = {})); +// _.isSafeInteger +var TestIsSafeInteger; +(function (TestIsSafeInteger) { + { + var result_502; + result_502 = _.isSafeInteger(any); + result_502 = _(1).isSafeInteger(); + result_502 = _([]).isSafeInteger(); + result_502 = _({}).isSafeInteger(); + } + { + var result_503; + result_503 = _(1).chain().isSafeInteger(); + result_503 = _([]).chain().isSafeInteger(); + result_503 = _({}).chain().isSafeInteger(); + } +})(TestIsSafeInteger || (TestIsSafeInteger = {})); +// _.isString +var TestIsString; +(function (TestIsString) { + { + var value; + if (_.isString(value)) { + var result_504 = value; + } + else { + var result_505 = value; + } + } + { + var result_506; + result_506 = _.isString(any); + result_506 = _(1).isString(); + result_506 = _([]).isString(); + result_506 = _({}).isString(); + } + { + var result_507; + result_507 = _(1).chain().isString(); + result_507 = _([]).chain().isString(); + result_507 = _({}).chain().isString(); + } +})(TestIsString || (TestIsString = {})); +// _.isSymbol +var TestIsSymbol; +(function (TestIsSymbol) { + { + var result_508; + result_508 = _.isSymbol(any); + result_508 = _(1).isSymbol(); + result_508 = _([]).isSymbol(); + result_508 = _({}).isSymbol(); + } + { + var result_509; + result_509 = _(1).chain().isSymbol(); + result_509 = _([]).chain().isSymbol(); + result_509 = _({}).chain().isSymbol(); + } +})(TestIsSymbol || (TestIsSymbol = {})); +// _.isTypedArray +var TestIsTypedArray; +(function (TestIsTypedArray) { + { + var result_510; + result_510 = _.isTypedArray([]); + result_510 = _([]).isTypedArray(); + } + { + var result_511; + result_511 = _([]).chain().isTypedArray(); + } +})(TestIsTypedArray || (TestIsTypedArray = {})); +// _.isUndefined +var TestIsUndefined; +(function (TestIsUndefined) { + { + var result_512; + result_512 = _.isUndefined(any); + result_512 = _(1).isUndefined(); + result_512 = _([]).isUndefined(); + result_512 = _({}).isUndefined(); + } + { + var result_513; + result_513 = _(1).chain().isUndefined(); + result_513 = _([]).chain().isUndefined(); + result_513 = _({}).chain().isUndefined(); + } +})(TestIsUndefined || (TestIsUndefined = {})); +// _.lt +var TestLt; +(function (TestLt) { + { + var result_514; + result_514 = _.lt(any, any); + result_514 = _(1).lt(any); + result_514 = _([]).lt(any); + result_514 = _({}).lt(any); + } + { + var result_515; + result_515 = _(1).chain().lt(any); + result_515 = _([]).chain().lt(any); + result_515 = _({}).chain().lt(any); + } +})(TestLt || (TestLt = {})); +// _.lte +var TestLte; +(function (TestLte) { + { + var result_516; + result_516 = _.lte(any, any); + result_516 = _(1).lte(any); + result_516 = _([]).lte(any); + result_516 = _({}).lte(any); + } + { + var result_517; + result_517 = _(1).chain().lte(any); + result_517 = _([]).chain().lte(any); + result_517 = _({}).chain().lte(any); + } +})(TestLte || (TestLte = {})); +// _.toArray +var TestToArray; +(function (TestToArray) { + var array; + var list; + var dictionary; + var numericDictionary; + { + var result_518; + result_518 = _.toArray(''); + result_518 = _.toArray(''); + } + { + var result_519; + result_519 = _.toArray(array); + result_519 = _.toArray(list); + result_519 = _.toArray(dictionary); + result_519 = _.toArray(numericDictionary); + result_519 = _.toArray(array); + result_519 = _.toArray(list); + result_519 = _.toArray(dictionary); + result_519 = _.toArray(numericDictionary); + } + { + var result_520; + result_520 = _.toArray(); + result_520 = _.toArray(42); + result_520 = _.toArray(true); + } + { + var result_521; + result_521 = _(array).toArray(); + result_521 = _(list).toArray(); + result_521 = _(dictionary).toArray(); + result_521 = _(numericDictionary).toArray(); + } + { + var result_522; + result_522 = _(array).chain().toArray(); + result_522 = _(list).chain().toArray(); + result_522 = _(dictionary).chain().toArray(); + result_522 = _(numericDictionary).chain().toArray(); + } +})(TestToArray || (TestToArray = {})); +// _.toPlainObject +var TestToPlainObject; +(function (TestToPlainObject) { + { + var result_523; + result_523 = _.toPlainObject(); + result_523 = _.toPlainObject(true); + result_523 = _.toPlainObject(1); + result_523 = _.toPlainObject('a'); + result_523 = _.toPlainObject([]); + result_523 = _.toPlainObject({}); + } + { + var result_524; + result_524 = _(true).toPlainObject(); + result_524 = _(1).toPlainObject(); + result_524 = _('a').toPlainObject(); + result_524 = _([1]).toPlainObject(); + result_524 = _([]).toPlainObject(); + result_524 = _({}).toPlainObject(); + } +})(TestToPlainObject || (TestToPlainObject = {})); +// _.toInteger +var TestToInteger; +(function (TestToInteger) { + { + var result_525; + result_525 = _.toInteger(true); + result_525 = _.toInteger(1); + result_525 = _.toInteger('a'); + result_525 = _.toInteger([]); + result_525 = _.toInteger({}); + } + { + var result_526; + result_526 = _(true).toInteger(); + result_526 = _(1).toInteger(); + result_526 = _('a').toInteger(); + result_526 = _([1]).toInteger(); + result_526 = _([]).toInteger(); + result_526 = _({}).toInteger(); + } +})(TestToInteger || (TestToInteger = {})); +// _.toLength +var TestToLength; +(function (TestToLength) { + { + var result_527; + result_527 = _.toLength(true); + result_527 = _.toLength(1); + result_527 = _.toLength('a'); + result_527 = _.toLength([]); + result_527 = _.toLength({}); + } + { + var result_528; + result_528 = _(true).toLength(); + result_528 = _(1).toLength(); + result_528 = _('a').toLength(); + result_528 = _([1]).toLength(); + result_528 = _([]).toLength(); + result_528 = _({}).toLength(); + } +})(TestToLength || (TestToLength = {})); +// _.toNumber +var TestToNumber; +(function (TestToNumber) { + { + var result_529; + result_529 = _.toNumber(true); + result_529 = _.toNumber(1); + result_529 = _.toNumber('a'); + result_529 = _.toNumber([]); + result_529 = _.toNumber({}); + } + { + var result_530; + result_530 = _(true).toNumber(); + result_530 = _(1).toNumber(); + result_530 = _('a').toNumber(); + result_530 = _([1]).toNumber(); + result_530 = _([]).toNumber(); + result_530 = _({}).toNumber(); + } +})(TestToNumber || (TestToNumber = {})); +// _.toSafeInteger +var TestToSafeInteger; +(function (TestToSafeInteger) { + { + var result_531; + result_531 = _.toSafeInteger(true); + result_531 = _.toSafeInteger(1); + result_531 = _.toSafeInteger('a'); + result_531 = _.toSafeInteger([]); + result_531 = _.toSafeInteger({}); + } + { + var result_532; + result_532 = _(true).toSafeInteger(); + result_532 = _(1).toSafeInteger(); + result_532 = _('a').toSafeInteger(); + result_532 = _([1]).toSafeInteger(); + result_532 = _([]).toSafeInteger(); + result_532 = _({}).toSafeInteger(); + } +})(TestToSafeInteger || (TestToSafeInteger = {})); +/******** + * Math * + ********/ +// _.add +var TestAdd; +(function (TestAdd) { + { + var result_533; + result_533 = _.add(1, 1); + result_533 = _(1).add(1); + } + { + var result_534; + result_534 = _(1).chain().add(1); + } +})(TestAdd || (TestAdd = {})); +// _.ceil +var TestCeil; +(function (TestCeil) { + { + var result_535; + result_535 = _.ceil(6.004); + result_535 = _.ceil(6.004, 2); + result_535 = _(6.004).ceil(); + result_535 = _(6.004).ceil(2); + } + { + var result_536; + result_536 = _(6.004).chain().ceil(); + result_536 = _(6.004).chain().ceil(2); + } +})(TestCeil || (TestCeil = {})); +// _.floor +var TestFloor; +(function (TestFloor) { + { + var result_537; + result_537 = _.floor(4.006); + result_537 = _.floor(0.046, 2); + result_537 = _.floor(4060, -2); + result_537 = _(4.006).floor(); + result_537 = _(0.046).floor(2); + result_537 = _(4060).floor(-2); + } + { + var result_538; + result_538 = _(4.006).chain().floor(); + result_538 = _(0.046).chain().floor(2); + result_538 = _(4060).chain().floor(-2); + } +})(TestFloor || (TestFloor = {})); +// _.max +var TestMax; +(function (TestMax) { + var array; + var list; + var result; + result = _.max(array); + result = _.max(list); + result = _(array).max(); + result = _(list).max(); +})(TestMax || (TestMax = {})); +// _.maxBy +var TestMaxBy; +(function (TestMaxBy) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + var result; + result = _.maxBy(array); + result = _.maxBy(array, listIterator); + result = _.maxBy(array, ''); + result = _.maxBy(array, { a: 42 }); + result = _.maxBy(list); + result = _.maxBy(list, listIterator); + result = _.maxBy(list, ''); + result = _.maxBy(list, { a: 42 }); + result = _.maxBy(dictionary); + result = _.maxBy(dictionary, dictionaryIterator); + result = _.maxBy(dictionary, ''); + result = _.maxBy(dictionary, { a: 42 }); + result = _(array).maxBy(); + result = _(array).maxBy(listIterator); + result = _(array).maxBy(''); + result = _(array).maxBy({ a: 42 }); + result = _(list).maxBy(); + result = _(list).maxBy(listIterator); + result = _(list).maxBy(''); + result = _(list).maxBy({ a: 42 }); + result = _(dictionary).maxBy(); + result = _(dictionary).maxBy(dictionaryIterator); + result = _(dictionary).maxBy(''); + result = _(dictionary).maxBy({ a: 42 }); +})(TestMaxBy || (TestMaxBy = {})); +// _.mean +var TestMean; +(function (TestMean) { + var array; + var result; + result = _.mean(array); + result = _(array).mean(); +})(TestMean || (TestMean = {})); +// _.min +var TestMin; +(function (TestMin) { + var array; + var list; + var result; + result = _.min(array); + result = _.min(list); + result = _(array).min(); + result = _(list).min(); +})(TestMin || (TestMin = {})); +// _.minBy +var TestMinBy; +(function (TestMinBy) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + var result; + result = _.minBy(array); + result = _.minBy(array, listIterator); + result = _.minBy(array, ''); + result = _.minBy(array, { a: 42 }); + result = _.minBy(list); + result = _.minBy(list, listIterator); + result = _.minBy(list, ''); + result = _.minBy(list, { a: 42 }); + result = _.minBy(dictionary); + result = _.minBy(dictionary, dictionaryIterator); + result = _.minBy(dictionary, ''); + result = _.minBy(dictionary, { a: 42 }); + result = _(array).minBy(); + result = _(array).minBy(listIterator); + result = _(array).minBy(''); + result = _(array).minBy({ a: 42 }); + result = _(list).minBy(); + result = _(list).minBy(listIterator); + result = _(list).minBy(''); + result = _(list).minBy({ a: 42 }); + result = _(dictionary).minBy(); + result = _(dictionary).minBy(dictionaryIterator); + result = _(dictionary).minBy(''); + result = _(dictionary).minBy({ a: 42 }); +})(TestMinBy || (TestMinBy = {})); +// _.round +var TestRound; +(function (TestRound) { + { + var result_539; + result_539 = _.round(4.006); + result_539 = _.round(4.006, 2); + result_539 = _(4.006).round(); + result_539 = _(4.006).round(2); + } + { + var result_540; + result_540 = _(4.006).chain().round(); + result_540 = _(4.006).chain().round(2); + } +})(TestRound || (TestRound = {})); +// _.sum +var TestSum; +(function (TestSum) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + { + var result_541; + result_541 = _.sum(array); + result_541 = _.sum(array); + result_541 = _.sum(list); + result_541 = _.sum(list); + result_541 = _(array).sum(); + result_541 = _(list).sum(); + result_541 = _(dictionary).sum(); + } + { + var result_542; + result_542 = _(array).chain().sum(); + result_542 = _(list).chain().sum(); + result_542 = _(dictionary).chain().sum(); + } +})(TestSum || (TestSum = {})); +// _.sumBy +var TestSumBy; +(function (TestSumBy) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + { + var result_543; + result_543 = _.sumBy(array); + result_543 = _.sumBy(array, listIterator); + result_543 = _.sumBy(array, ''); + result_543 = _.sumBy(list); + result_543 = _.sumBy(list, listIterator); + result_543 = _.sumBy(list, ''); + result_543 = _.sumBy(dictionary); + result_543 = _.sumBy(dictionary, dictionaryIterator); + result_543 = _.sumBy(dictionary, ''); + result_543 = _(array).sumBy(listIterator); + result_543 = _(array).sumBy(''); + result_543 = _(list).sumBy(listIterator); + result_543 = _(list).sumBy(''); + result_543 = _(dictionary).sumBy(dictionaryIterator); + result_543 = _(dictionary).sumBy(''); + } + { + var result_544; + result_544 = _(array).chain().sumBy(listIterator); + result_544 = _(array).chain().sumBy(''); + result_544 = _(list).chain().sumBy(listIterator); + result_544 = _(list).chain().sumBy(''); + result_544 = _(dictionary).chain().sumBy(dictionaryIterator); + result_544 = _(dictionary).chain().sumBy(''); + } +})(TestSumBy || (TestSumBy = {})); +/********** + * Number * + **********/ +// _.subtract +var subtract; +(function (subtract) { + { + var result_545; + result_545 = _.subtract(3, 2); + result_545 = _(3).subtract(2); + } + { + var result_546; + result_546 = _(3).chain().subtract(2); + } +})(subtract || (subtract = {})); +// _.clamp +var TestInClamp; +(function (TestInClamp) { + { + var result_547; + result_547 = _.clamp(3, 2, 4); + result_547 = _(3).clamp(2, 4); + } + { + var result_548; + result_548 = _(3).chain().clamp(2, 4); + } +})(TestInClamp || (TestInClamp = {})); +// _.inRange +var TestInRange; +(function (TestInRange) { + { + var result_549; + result_549 = _.inRange(3, 2, 4); + result_549 = _.inRange(4, 8); + result_549 = _(3).inRange(2, 4); + result_549 = _(4).inRange(8); + } + { + var result_550; + result_550 = _(3).chain().inRange(2, 4); + result_550 = _(4).chain().inRange(8); + } +})(TestInRange || (TestInRange = {})); +// _.random +var TestRandom; +(function (TestRandom) { + { + var result_551; + result_551 = _.random(); + result_551 = _.random(1); + result_551 = _.random(1, 2); + result_551 = _.random(1, 2, true); + result_551 = _.random(1, true); + result_551 = _.random(true); + result_551 = _(1).random(); + result_551 = _(1).random(2); + result_551 = _(1).random(2, true); + result_551 = _(1).random(true); + result_551 = _(true).random(); + } + { + var result_552; + result_552 = _(1).chain().random(); + result_552 = _(1).chain().random(2); + result_552 = _(1).chain().random(2, true); + result_552 = _(1).chain().random(true); + result_552 = _(true).chain().random(); + } +})(TestRandom || (TestRandom = {})); +/********** + * Object * + **********/ +// _.assign +var TestAssign; +(function (TestAssign) { + ; + ; + ; + ; + ; + ; + var obj; + var s1; + var s2; + var s3; + var s4; + var s5; + var customizer; + { + var result_553; + result_553 = _.assign(obj); + } + { + var result_554; + result_554 = _.assign(obj, s1); + } + { + var result_555; + result_555 = _.assign(obj, s1, s2); + } + { + var result_556; + result_556 = _.assign(obj, s1, s2, s3); + } + { + var result_557; + result_557 = _.assign(obj, s1, s2, s3, s4); + } + { + var result_558; + result_558 = _.assign(obj, s1, s2, s3, s4, s5); + } + { + var result_559; + result_559 = _(obj).assign(); + } + { + var result_560; + result_560 = _(obj).assign(s1); + } + { + var result_561; + result_561 = _(obj).assign(s1, s2); + } + { + var result_562; + result_562 = _(obj).assign(s1, s2, s3); + } + { + var result_563; + result_563 = _(obj).assign(s1, s2, s3, s4); + } + { + var result_564; + result_564 = _(obj).assign(s1, s2, s3, s4, s5); + } + { + var result_565; + result_565 = _(obj).chain().assign(); + } + { + var result_566; + result_566 = _(obj).chain().assign(s1); + } + { + var result_567; + result_567 = _(obj).chain().assign(s1, s2); + } + { + var result_568; + result_568 = _(obj).chain().assign(s1, s2, s3); + } + { + var result_569; + result_569 = _(obj).chain().assign(s1, s2, s3, s4); + } + { + var result_570; + result_570 = _(obj).chain().assign(s1, s2, s3, s4, s5); + } +})(TestAssign || (TestAssign = {})); +// _.assignWith +var TestAssignWith; +(function (TestAssignWith) { + ; + ; + ; + ; + ; + ; + var obj; + var s1; + var s2; + var s3; + var s4; + var s5; + var customizer; + { + var result_571; + result_571 = _.assignWith(obj); + } + { + var result_572; + result_572 = _.assignWith(obj, s1, customizer); + } + { + var result_573; + result_573 = _.assignWith(obj, s1, s2, customizer); + } + { + var result_574; + result_574 = _.assignWith(obj, s1, s2, s3, customizer); + } + { + var result_575; + result_575 = _.assignWith(obj, s1, s2, s3, s4, customizer); + } + { + var result_576; + result_576 = _.assignWith(obj, s1, s2, s3, s4, s5, customizer); + } + { + var result_577; + result_577 = _(obj).assignWith(); + } + { + var result_578; + result_578 = _(obj).assignWith(s1, customizer); + } + { + var result_579; + result_579 = _(obj).assignWith(s1, s2, customizer); + } + { + var result_580; + result_580 = _(obj).assignWith(s1, s2, s3, customizer); + } + { + var result_581; + result_581 = _(obj).assignWith(s1, s2, s3, s4, customizer); + } + { + var result_582; + result_582 = _(obj).assignWith(s1, s2, s3, s4, s5, customizer); + } + { + var result_583; + result_583 = _(obj).chain().assignWith(); + } + { + var result_584; + result_584 = _(obj).chain().assignWith(s1, customizer); + } + { + var result_585; + result_585 = _(obj).chain().assignWith(s1, s2, customizer); + } + { + var result_586; + result_586 = _(obj).chain().assignWith(s1, s2, s3, customizer); + } + { + var result_587; + result_587 = _(obj).chain().assignWith(s1, s2, s3, s4, customizer); + } + { + var result_588; + result_588 = _(obj).chain().assignWith(s1, s2, s3, s4, s5, customizer); + } +})(TestAssignWith || (TestAssignWith = {})); +// _.assignIn +var TestAssignIn; +(function (TestAssignIn) { + ; + ; + ; + ; + ; + ; + var obj; + var s1; + var s2; + var s3; + var s4; + var s5; + var customizer; + { + var result_589; + result_589 = _.assignIn(obj); + } + { + var result_590; + result_590 = _.assignIn(obj, s1); + } + { + var result_591; + result_591 = _.assignIn(obj, s1, s2); + } + { + var result_592; + result_592 = _.assignIn(obj, s1, s2, s3); + } + { + var result_593; + result_593 = _.assignIn(obj, s1, s2, s3, s4); + } + { + var result_594; + result_594 = _.assignIn(obj, s1, s2, s3, s4, s5); + } + { + var result_595; + result_595 = _(obj).assignIn(); + } + { + var result_596; + result_596 = _(obj).assignIn(s1); + } + { + var result_597; + result_597 = _(obj).assignIn(s1, s2); + } + { + var result_598; + result_598 = _(obj).assignIn(s1, s2, s3); + } + { + var result_599; + result_599 = _(obj).assignIn(s1, s2, s3, s4); + } + { + var result_600; + result_600 = _(obj).assignIn(s1, s2, s3, s4, s5); + } + { + var result_601; + result_601 = _(obj).chain().assignIn(); + } + { + var result_602; + result_602 = _(obj).chain().assignIn(s1); + } + { + var result_603; + result_603 = _(obj).chain().assignIn(s1, s2); + } + { + var result_604; + result_604 = _(obj).chain().assignIn(s1, s2, s3); + } + { + var result_605; + result_605 = _(obj).chain().assignIn(s1, s2, s3, s4); + } + { + var result_606; + result_606 = _(obj).chain().assignIn(s1, s2, s3, s4, s5); + } +})(TestAssignIn || (TestAssignIn = {})); +// _.assignInWith +var TestAssignInWith; +(function (TestAssignInWith) { + ; + ; + ; + ; + ; + ; + var obj; + var s1; + var s2; + var s3; + var s4; + var s5; + var customizer; + { + var result_607; + result_607 = _.assignInWith(obj); + } + { + var result_608; + result_608 = _.assignInWith(obj, s1, customizer); + } + { + var result_609; + result_609 = _.assignInWith(obj, s1, s2, customizer); + } + { + var result_610; + result_610 = _.assignInWith(obj, s1, s2, s3, customizer); + } + { + var result_611; + result_611 = _.assignInWith(obj, s1, s2, s3, s4, customizer); + } + { + var result_612; + result_612 = _.assignInWith(obj, s1, s2, s3, s4, s5, customizer); + } + { + var result_613; + result_613 = _(obj).assignInWith(); + } + { + var result_614; + result_614 = _(obj).assignInWith(s1, customizer); + } + { + var result_615; + result_615 = _(obj).assignInWith(s1, s2, customizer); + } + { + var result_616; + result_616 = _(obj).assignInWith(s1, s2, s3, customizer); + } + { + var result_617; + result_617 = _(obj).assignInWith(s1, s2, s3, s4, customizer); + } + { + var result_618; + result_618 = _(obj).assignInWith(s1, s2, s3, s4, s5, customizer); + } + { + var result_619; + result_619 = _(obj).chain().assignInWith(); + } + { + var result_620; + result_620 = _(obj).chain().assignInWith(s1, customizer); + } + { + var result_621; + result_621 = _(obj).chain().assignInWith(s1, s2, customizer); + } + { + var result_622; + result_622 = _(obj).chain().assignInWith(s1, s2, s3, customizer); + } + { + var result_623; + result_623 = _(obj).chain().assignInWith(s1, s2, s3, s4, customizer); + } + { + var result_624; + result_624 = _(obj).chain().assignInWith(s1, s2, s3, s4, s5, customizer); + } +})(TestAssignInWith || (TestAssignInWith = {})); +// _.create +var TestCreate; +(function (TestCreate) { + var prototype; + var properties; + { + var result_625; + result_625 = _.create(prototype, properties); + result_625 = _.create(prototype, properties); + } + { + var result_626; + result_626 = _(prototype).create(properties); + result_626 = _(prototype).create(properties); + } + { + var result_627; + result_627 = _(prototype).chain().create(properties); + result_627 = _(prototype).chain().create(properties); + } +})(TestCreate || (TestCreate = {})); +// _.defaults +var TestDefaults; +(function (TestDefaults) { + ; + ; + ; + ; + ; + ; + var obj; + var s1; + var s2; + var s3; + var s4; + var s5; + { + var result_628; + result_628 = _.defaults(obj); + } + { + var result_629; + result_629 = _.defaults(obj, s1); + } + { + var result_630; + result_630 = _.defaults(obj, s1, s2); + } + { + var result_631; + result_631 = _.defaults(obj, s1, s2, s3); + } + { + var result_632; + result_632 = _.defaults(obj, s1, s2, s3, s4); + } + { + var result_633; + result_633 = _.defaults(obj, s1, s2, s3, s4, s5); + } + { + var result_634; + result_634 = _(obj).defaults(); + } + { + var result_635; + result_635 = _(obj).defaults(s1); + } + { + var result_636; + result_636 = _(obj).defaults(s1, s2); + } + { + var result_637; + result_637 = _(obj).defaults(s1, s2, s3); + } + { + var result_638; + result_638 = _(obj).defaults(s1, s2, s3, s4); + } + { + var result_639; + result_639 = _(obj).defaults(s1, s2, s3, s4, s5); + } + { + var result_640; + result_640 = _(obj).chain().defaults(); + } + { + var result_641; + result_641 = _(obj).chain().defaults(s1); + } + { + var result_642; + result_642 = _(obj).chain().defaults(s1, s2); + } + { + var result_643; + result_643 = _(obj).chain().defaults(s1, s2, s3); + } + { + var result_644; + result_644 = _(obj).chain().defaults(s1, s2, s3, s4); + } + { + var result_645; + result_645 = _(obj).chain().defaults(s1, s2, s3, s4, s5); + } +})(TestDefaults || (TestDefaults = {})); +var TestDefaultsDeepObject = { 'user': { 'name': 'barney' } }; +var TestDefaultsDeepSource = { 'user': { 'name': 'fred', 'age': 36 } }; +result = _.defaultsDeep(TestDefaultsDeepObject, TestDefaultsDeepSource); +result = _(TestDefaultsDeepObject).defaultsDeep(TestDefaultsDeepSource).value(); +// _.extend +var TestExtend; +(function (TestExtend) { + var obj; + var s1; + var s2; + var s3; + var s4; + var s5; + var customizer; + { + var result_646; + result_646 = _.extend(obj); + } + { + var result_647; + result_647 = _.extend(obj, s1); + result_647 = _.extend(obj, s1, customizer); + result_647 = _.extend(obj, s1, customizer, any); + } + { + var result_648; + result_648 = _.extend(obj, s1, s2); + result_648 = _.extend(obj, s1, s2, customizer); + result_648 = _.extend(obj, s1, s2, customizer, any); + } + { + var result_649; + result_649 = _.extend(obj, s1, s2, s3); + result_649 = _.extend(obj, s1, s2, s3, customizer); + result_649 = _.extend(obj, s1, s2, s3, customizer, any); + } + { + var result_650; + result_650 = _.extend(obj, s1, s2, s3, s4); + result_650 = _.extend(obj, s1, s2, s3, s4, customizer); + result_650 = _.extend(obj, s1, s2, s3, s4, customizer, any); + } + { + var result_651; + result_651 = _.extend(obj, s1, s2, s3, s4, s5); + result_651 = _.extend(obj, s1, s2, s3, s4, s5, customizer); + result_651 = _.extend(obj, s1, s2, s3, s4, s5, customizer, any); + } + { + var result_652; + result_652 = _(obj).extend(); + } + { + var result_653; + result_653 = _(obj).extend(s1); + result_653 = _(obj).extend(s1, customizer); + result_653 = _(obj).extend(s1, customizer, any); + } + { + var result_654; + result_654 = _(obj).extend(s1, s2); + result_654 = _(obj).extend(s1, s2, customizer); + result_654 = _(obj).extend(s1, s2, customizer, any); + } + { + var result_655; + result_655 = _(obj).extend(s1, s2, s3); + result_655 = _(obj).extend(s1, s2, s3, customizer); + result_655 = _(obj).extend(s1, s2, s3, customizer, any); + } + { + var result_656; + result_656 = _(obj).extend(s1, s2, s3, s4); + result_656 = _(obj).extend(s1, s2, s3, s4, customizer); + result_656 = _(obj).extend(s1, s2, s3, s4, customizer, any); + } + { + var result_657; + result_657 = _(obj).extend(s1, s2, s3, s4, s5); + result_657 = _(obj).extend(s1, s2, s3, s4, s5, customizer); + result_657 = _(obj).extend(s1, s2, s3, s4, s5, customizer, any); + } + { + var result_658; + result_658 = _(obj).chain().extend(); + } + { + var result_659; + result_659 = _(obj).chain().extend(s1); + result_659 = _(obj).chain().extend(s1, customizer); + result_659 = _(obj).chain().extend(s1, customizer, any); + } + { + var result_660; + result_660 = _(obj).chain().extend(s1, s2); + result_660 = _(obj).chain().extend(s1, s2, customizer); + result_660 = _(obj).chain().extend(s1, s2, customizer, any); + } + { + var result_661; + result_661 = _(obj).chain().extend(s1, s2, s3); + result_661 = _(obj).chain().extend(s1, s2, s3, customizer); + result_661 = _(obj).chain().extend(s1, s2, s3, customizer, any); + } + { + var result_662; + result_662 = _(obj).chain().extend(s1, s2, s3, s4); + result_662 = _(obj).chain().extend(s1, s2, s3, s4, customizer); + result_662 = _(obj).chain().extend(s1, s2, s3, s4, customizer, any); + } + { + var result_663; + result_663 = _(obj).chain().extend(s1, s2, s3, s4, s5); + result_663 = _(obj).chain().extend(s1, s2, s3, s4, s5, customizer); + result_663 = _(obj).chain().extend(s1, s2, s3, s4, s5, customizer, any); + } +})(TestExtend || (TestExtend = {})); +// _.findKey +var TestFindKey; +(function (TestFindKey) { + { + var predicateFn; + var result_664; + result_664 = _.findKey({ a: '' }); + result_664 = _.findKey({ a: '' }, predicateFn); + result_664 = _.findKey({ a: '' }, predicateFn, any); + result_664 = _.findKey({ a: '' }, ''); + result_664 = _.findKey({ a: '' }, '', any); + result_664 = _.findKey({ a: '' }, { a: 42 }); + result_664 = _({ a: '' }).findKey(); + result_664 = _({ a: '' }).findKey(predicateFn); + result_664 = _({ a: '' }).findKey(predicateFn, any); + result_664 = _({ a: '' }).findKey(''); + result_664 = _({ a: '' }).findKey('', any); + result_664 = _({ a: '' }).findKey({ a: 42 }); + } + { + var predicateFn; + var result_665; + result_665 = _.findKey({ a: '' }, predicateFn); + result_665 = _.findKey({ a: '' }, predicateFn, any); + result_665 = _({ a: '' }).findKey(predicateFn); + result_665 = _({ a: '' }).findKey(predicateFn, any); + } + { + var predicateFn; + var result_666; + result_666 = _({ a: '' }).chain().findKey(); + result_666 = _({ a: '' }).chain().findKey(predicateFn); + result_666 = _({ a: '' }).chain().findKey(predicateFn, any); + result_666 = _({ a: '' }).chain().findKey(''); + result_666 = _({ a: '' }).chain().findKey('', any); + result_666 = _({ a: '' }).chain().findKey({ a: 42 }); + } + { + var predicateFn; + var result_667; + result_667 = _({ a: '' }).chain().findKey(predicateFn); + result_667 = _({ a: '' }).chain().findKey(predicateFn, any); + } +})(TestFindKey || (TestFindKey = {})); +// _.findLastKey +var TestFindLastKey; +(function (TestFindLastKey) { + { + var predicateFn; + var result_668; + result_668 = _.findLastKey({ a: '' }); + result_668 = _.findLastKey({ a: '' }, predicateFn); + result_668 = _.findLastKey({ a: '' }, predicateFn, any); + result_668 = _.findLastKey({ a: '' }, ''); + result_668 = _.findLastKey({ a: '' }, '', any); + result_668 = _.findLastKey({ a: '' }, { a: 42 }); + result_668 = _({ a: '' }).findLastKey(); + result_668 = _({ a: '' }).findLastKey(predicateFn); + result_668 = _({ a: '' }).findLastKey(predicateFn, any); + result_668 = _({ a: '' }).findLastKey(''); + result_668 = _({ a: '' }).findLastKey('', any); + result_668 = _({ a: '' }).findLastKey({ a: 42 }); + } + { + var predicateFn; + var result_669; + result_669 = _.findLastKey({ a: '' }, predicateFn); + result_669 = _.findLastKey({ a: '' }, predicateFn, any); + result_669 = _({ a: '' }).findLastKey(predicateFn); + result_669 = _({ a: '' }).findLastKey(predicateFn, any); + } + { + var predicateFn; + var result_670; + result_670 = _({ a: '' }).chain().findLastKey(); + result_670 = _({ a: '' }).chain().findLastKey(predicateFn); + result_670 = _({ a: '' }).chain().findLastKey(predicateFn, any); + result_670 = _({ a: '' }).chain().findLastKey(''); + result_670 = _({ a: '' }).chain().findLastKey('', any); + result_670 = _({ a: '' }).chain().findLastKey({ a: 42 }); + } + { + var predicateFn; + var result_671; + result_671 = _({ a: '' }).chain().findLastKey(predicateFn); + result_671 = _({ a: '' }).chain().findLastKey(predicateFn, any); + } +})(TestFindLastKey || (TestFindLastKey = {})); +// _.forIn +var TestForIn; +(function (TestForIn) { + var dictionary; + var dictionaryIterator; + var object; + var objectIterator; + { + var result_672; + result_672 = _.forIn(dictionary); + result_672 = _.forIn(dictionary, dictionaryIterator); + result_672 = _.forIn(dictionary, dictionaryIterator, any); + } + { + var result_673; + result_673 = _.forIn(object); + result_673 = _.forIn(object, objectIterator); + result_673 = _.forIn(object, objectIterator, any); + } + { + var result_674; + result_674 = _(dictionary).forIn(); + result_674 = _(dictionary).forIn(dictionaryIterator); + result_674 = _(dictionary).forIn(dictionaryIterator, any); + } + { + var result_675; + result_675 = _(dictionary).chain().forIn(); + result_675 = _(dictionary).chain().forIn(dictionaryIterator); + result_675 = _(dictionary).chain().forIn(dictionaryIterator, any); + } +})(TestForIn || (TestForIn = {})); +// _.forInRight +var TestForInRight; +(function (TestForInRight) { + var dictionary; + var dictionaryIterator; + var object; + var objectIterator; + { + var result_676; + result_676 = _.forInRight(dictionary); + result_676 = _.forInRight(dictionary, dictionaryIterator); + result_676 = _.forInRight(dictionary, dictionaryIterator, any); + } + { + var result_677; + result_677 = _.forInRight(object); + result_677 = _.forInRight(object, objectIterator); + result_677 = _.forInRight(object, objectIterator, any); + } + { + var result_678; + result_678 = _(dictionary).forInRight(); + result_678 = _(dictionary).forInRight(dictionaryIterator); + result_678 = _(dictionary).forInRight(dictionaryIterator, any); + } + { + var result_679; + result_679 = _(dictionary).chain().forInRight(); + result_679 = _(dictionary).chain().forInRight(dictionaryIterator); + result_679 = _(dictionary).chain().forInRight(dictionaryIterator, any); + } +})(TestForInRight || (TestForInRight = {})); +// _.forOwn +var TestForOwn; +(function (TestForOwn) { + var dictionary; + var dictionaryIterator; + var object; + var objectIterator; + { + var result_680; + result_680 = _.forOwn(dictionary); + result_680 = _.forOwn(dictionary, dictionaryIterator); + result_680 = _.forOwn(dictionary, dictionaryIterator, any); + } + { + var result_681; + result_681 = _.forOwn(object); + result_681 = _.forOwn(object, objectIterator); + result_681 = _.forOwn(object, objectIterator, any); + } + { + var result_682; + result_682 = _(dictionary).forOwn(); + result_682 = _(dictionary).forOwn(dictionaryIterator); + result_682 = _(dictionary).forOwn(dictionaryIterator, any); + } + { + var result_683; + result_683 = _(dictionary).chain().forOwn(); + result_683 = _(dictionary).chain().forOwn(dictionaryIterator); + result_683 = _(dictionary).chain().forOwn(dictionaryIterator, any); + } +})(TestForOwn || (TestForOwn = {})); +// _.forOwnRight +var TestForOwnRight; +(function (TestForOwnRight) { + var dictionary; + var dictionaryIterator; + var object; + var objectIterator; + { + var result_684; + result_684 = _.forOwnRight(dictionary); + result_684 = _.forOwnRight(dictionary, dictionaryIterator); + result_684 = _.forOwnRight(dictionary, dictionaryIterator, any); + } + { + var result_685; + result_685 = _.forOwnRight(object); + result_685 = _.forOwnRight(object, objectIterator); + result_685 = _.forOwnRight(object, objectIterator, any); + } + { + var result_686; + result_686 = _(dictionary).forOwnRight(); + result_686 = _(dictionary).forOwnRight(dictionaryIterator); + result_686 = _(dictionary).forOwnRight(dictionaryIterator, any); + } + { + var result_687; + result_687 = _(dictionary).chain().forOwnRight(); + result_687 = _(dictionary).chain().forOwnRight(dictionaryIterator); + result_687 = _(dictionary).chain().forOwnRight(dictionaryIterator, any); + } +})(TestForOwnRight || (TestForOwnRight = {})); +// _.functions +var TestFunctions; +(function (TestFunctions) { + var object; + { + var result_688; + result_688 = _.functions(object); + } + { + var result_689; + result_689 = _(object).functions(); + } + { + var result_690; + result_690 = _(object).chain().functions(); + } +})(TestFunctions || (TestFunctions = {})); +// _.functionsIn +var TestFunctionsIn; +(function (TestFunctionsIn) { + var object; + { + var result_691; + result_691 = _.functionsIn(object); + } + { + var result_692; + result_692 = _(object).functionsIn(); + } + { + var result_693; + result_693 = _(object).chain().functionsIn(); + } +})(TestFunctionsIn || (TestFunctionsIn = {})); +// _.get +result = _.get({ 'a': [{ 'b': { 'c': 3 } }] }, 'a[0].b.c'); +{ + var result_694; + result_694 = _.get({}, ''); + result_694 = _.get({}, 42); + result_694 = _.get({}, true); + result_694 = _.get({}, ['', 42, true]); + result_694 = _({}).get(''); + result_694 = _({}).get(42); + result_694 = _({}).get(true); + result_694 = _({}).get(['', 42, true]); +} +// _.has +var TestHas; +(function (TestHas) { + var object; + { + var result_695; + result_695 = _.has(object, ''); + result_695 = _.has(object, 42); + result_695 = _.has(object, true); + result_695 = _.has(object, ['', 42, true]); + result_695 = _(object).has(''); + result_695 = _(object).has(42); + result_695 = _(object).has(true); + result_695 = _(object).has(['', 42, true]); + } + { + var result_696; + result_696 = _(object).chain().has(''); + result_696 = _(object).chain().has(42); + result_696 = _(object).chain().has(true); + result_696 = _(object).chain().has(['', 42, true]); + } +})(TestHas || (TestHas = {})); +// _.hasIn +var TestHasIn; +(function (TestHasIn) { + var object; + { + var result_697; + result_697 = _.hasIn(object, ''); + result_697 = _.hasIn(object, 42); + result_697 = _.hasIn(object, true); + result_697 = _.hasIn(object, ['', 42, true]); + result_697 = _(object).hasIn(''); + result_697 = _(object).hasIn(42); + result_697 = _(object).hasIn(true); + result_697 = _(object).hasIn(['', 42, true]); + } + { + var result_698; + result_698 = _(object).chain().hasIn(''); + result_698 = _(object).chain().hasIn(42); + result_698 = _(object).chain().hasIn(true); + result_698 = _(object).chain().hasIn(['', 42, true]); + } +})(TestHasIn || (TestHasIn = {})); +// _.invert +var TestInvert; +(function (TestInvert) { + { + var result_699; + result_699 = _.invert({}); + result_699 = _.invert({}, true); + result_699 = _.invert({}); + result_699 = _.invert({}, true); + } + { + var result_700; + result_700 = _({}).invert(); + result_700 = _({}).invert(true); + } + { + var result_701; + result_701 = _({}).chain().invert(); + result_701 = _({}).chain().invert(true); + } +})(TestInvert || (TestInvert = {})); +// _.keys +var TestKeys; +(function (TestKeys) { + var object; + { + var result_702; + result_702 = _.keys(object); + } + { + var result_703; + result_703 = _(object).keys(); + } + { + var result_704; + result_704 = _(object).chain().keys(); + } +})(TestKeys || (TestKeys = {})); +// _.keysIn +var TestKeysIn; +(function (TestKeysIn) { + var object; + { + var result_705; + result_705 = _.keysIn(object); + } + { + var result_706; + result_706 = _(object).keysIn(); + } + { + var result_707; + result_707 = _(object).chain().keysIn(); + } +})(TestKeysIn || (TestKeysIn = {})); +// _.mapKeys +var TestMapKeys; +(function (TestMapKeys) { + var array; + var list; + var dictionary; + var listIterator; + var dictionaryIterator; + { + var result_708; + result_708 = _.mapKeys(array); + result_708 = _.mapKeys(array, listIterator); + result_708 = _.mapKeys(array, listIterator, any); + result_708 = _.mapKeys(array, ''); + result_708 = _.mapKeys(array, '', any); + result_708 = _.mapKeys(array, {}); + result_708 = _.mapKeys(list); + result_708 = _.mapKeys(list, listIterator); + result_708 = _.mapKeys(list, listIterator, any); + result_708 = _.mapKeys(list, ''); + result_708 = _.mapKeys(list, '', any); + result_708 = _.mapKeys(list, {}); + result_708 = _.mapKeys(dictionary); + result_708 = _.mapKeys(dictionary, dictionaryIterator); + result_708 = _.mapKeys(dictionary, dictionaryIterator, any); + result_708 = _.mapKeys(dictionary, ''); + result_708 = _.mapKeys(dictionary, '', any); + result_708 = _.mapKeys(dictionary, {}); + } + { + var result_709; + result_709 = _(array).mapKeys(); + result_709 = _(array).mapKeys(listIterator); + result_709 = _(array).mapKeys(listIterator, any); + result_709 = _(array).mapKeys(''); + result_709 = _(array).mapKeys('', any); + result_709 = _(array).mapKeys({}); + result_709 = _(list).mapKeys(); + result_709 = _(list).mapKeys(listIterator); + result_709 = _(list).mapKeys(listIterator, any); + result_709 = _(list).mapKeys(''); + result_709 = _(list).mapKeys('', any); + result_709 = _(list).mapKeys({}); + result_709 = _(dictionary).mapKeys(); + result_709 = _(dictionary).mapKeys(dictionaryIterator); + result_709 = _(dictionary).mapKeys(dictionaryIterator, any); + result_709 = _(dictionary).mapKeys(''); + result_709 = _(dictionary).mapKeys('', any); + result_709 = _(dictionary).mapKeys({}); + } + { + var result_710; + result_710 = _(array).chain().mapKeys(); + result_710 = _(array).chain().mapKeys(listIterator); + result_710 = _(array).chain().mapKeys(listIterator, any); + result_710 = _(array).chain().mapKeys(''); + result_710 = _(array).chain().mapKeys('', any); + result_710 = _(array).chain().mapKeys({}); + result_710 = _(list).chain().mapKeys(); + result_710 = _(list).chain().mapKeys(listIterator); + result_710 = _(list).chain().mapKeys(listIterator, any); + result_710 = _(list).chain().mapKeys(''); + result_710 = _(list).chain().mapKeys('', any); + result_710 = _(list).chain().mapKeys({}); + result_710 = _(dictionary).chain().mapKeys(); + result_710 = _(dictionary).chain().mapKeys(dictionaryIterator); + result_710 = _(dictionary).chain().mapKeys(dictionaryIterator, any); + result_710 = _(dictionary).chain().mapKeys(''); + result_710 = _(dictionary).chain().mapKeys('', any); + result_710 = _(dictionary).chain().mapKeys({}); + } +})(TestMapKeys || (TestMapKeys = {})); +// _.merge +var TestMerge; +(function (TestMerge) { + var initialValue = { a: 1 }; + var mergingValue = { b: "hi" }; + var result; + // Test for basic merging + result = _.merge(initialValue, mergingValue); + result = _.merge(initialValue, {}, mergingValue); + result = _.merge(initialValue, {}, {}, mergingValue); + result = _.merge(initialValue, {}, {}, {}, mergingValue); + // Once we get to the varargs version, you have to specify the result explicitly + result = _.merge(initialValue, {}, {}, {}, {}, mergingValue); + var complicatedResult = _.merge({ a: 1 }, { b: "string" }, { c: {} }, { d: [1] }, { e: true }); + var overriddenResult = _.merge({ a: 1 }, { a: "string" }, { a: {} }, { a: [1] }, { a: true }); + // Tests for basic chaining with merge + result = _(initialValue).merge(mergingValue).value(); + result = _(initialValue).merge({}, mergingValue).value(); + result = _(initialValue).merge({}, {}, mergingValue).value(); + result = _(initialValue).merge({}, {}, {}, mergingValue).value(); + // Once we get to the varargs version, you have to specify the result explicitly + result = _(initialValue).merge({}, {}, {}, {}, mergingValue).value(); + // Test complex multiple combinations with chaining + var complicatedResult = _({ a: 1 }).merge({ b: "string" }, { c: {} }, { d: [1] }, { e: true }).value(); + // Test for type overriding with chaining + var overriddenResult = _({ a: 1 }).merge({ a: "string" }, { a: {} }, { a: [1] }, { a: true }).value(); + { + var result_711; + } + { + var result_712; + } + { + var result_713; + } +})(TestMerge || (TestMerge = {})); +// _.mergeWith +var TestMergeWith; +(function (TestMergeWith) { + var initialValue = { a: 1 }; + var mergingValue = { b: "hi" }; + var result; + var customizer; + // Test for basic merging + result = _.mergeWith(initialValue, mergingValue, customizer); + result = _.mergeWith(initialValue, {}, mergingValue, customizer); + result = _.mergeWith(initialValue, {}, {}, mergingValue, customizer); + result = _.mergeWith(initialValue, {}, {}, {}, mergingValue, customizer); + // Once we get to the varargs version, you have to specify the result explicitl + result = _.mergeWith(initialValue, {}, {}, {}, {}, mergingValue, customizer); + // Tests for basic chaining with mergeWith + result = _(initialValue).mergeWith(mergingValue, customizer).value(); + result = _(initialValue).mergeWith({}, mergingValue, customizer).value(); + result = _(initialValue).mergeWith({}, {}, mergingValue, customizer).value(); + result = _(initialValue).mergeWith({}, {}, {}, mergingValue, customizer).value(); + // Once we get to the varargs version, you have to specify the result explicitl + result = _(initialValue).mergeWith({}, {}, {}, {}, mergingValue, customizer).value(); +})(TestMergeWith || (TestMergeWith = {})); +// _.omit +var TestOmit; +(function (TestOmit) { + var predicate; + { + var result_714; + result_714 = _.omit({}, 'a'); + result_714 = _.omit({}, 0, 'a'); + result_714 = _.omit({}, true, 0, 'a'); + result_714 = _.omit({}, ['b', 1, false], true, 0, 'a'); + } + { + var result_715; + result_715 = _({}).omit('a'); + result_715 = _({}).omit(0, 'a'); + result_715 = _({}).omit(true, 0, 'a'); + result_715 = _({}).omit(['b', 1, false], true, 0, 'a'); + } + { + var result_716; + result_716 = _({}).chain().omit('a'); + result_716 = _({}).chain().omit(0, 'a'); + result_716 = _({}).chain().omit(true, 0, 'a'); + result_716 = _({}).chain().omit(['b', 1, false], true, 0, 'a'); + } +})(TestOmit || (TestOmit = {})); +// _.omitBy +var TestOmitBy; +(function (TestOmitBy) { + var predicate; + { + var result_717; + result_717 = _.omitBy({}, predicate); + } + { + var result_718; + result_718 = _({}).omitBy(predicate); + } + { + var result_719; + result_719 = _({}).chain().omitBy(predicate); + } +})(TestOmitBy || (TestOmitBy = {})); +// _.toPairs +var TestToPairs; +(function (TestToPairs) { + var object; + { + var result_720; + result_720 = _.toPairs(object); + } + { + var result_721; + result_721 = _.toPairs(object); + } + { + var result_722; + result_722 = _(object).toPairs(); + } + { + var result_723; + result_723 = _(object).toPairs(); + } + { + var result_724; + result_724 = _(object).chain().toPairs(); + } + { + var result_725; + result_725 = _(object).chain().toPairs(); + } +})(TestToPairs || (TestToPairs = {})); +// _.pick +var TestPick; +(function (TestPick) { + var predicate; + { + var result_726; + result_726 = _.pick({}, 'a'); + result_726 = _.pick({}, 0, 'a'); + result_726 = _.pick({}, true, 0, 'a'); + result_726 = _.pick({}, ['b', 1, false], true, 0, 'a'); + } + { + var result_727; + result_727 = _({}).pick('a'); + result_727 = _({}).pick(0, 'a'); + result_727 = _({}).pick(true, 0, 'a'); + result_727 = _({}).pick(['b', 1, false], true, 0, 'a'); + } + { + var result_728; + result_728 = _({}).chain().pick('a'); + result_728 = _({}).chain().pick(0, 'a'); + result_728 = _({}).chain().pick(true, 0, 'a'); + result_728 = _({}).chain().pick(['b', 1, false], true, 0, 'a'); + } +})(TestPick || (TestPick = {})); +// _.pickBy +var TestPickBy; +(function (TestPickBy) { + var predicate; + { + var result_729; + result_729 = _.pickBy({}, predicate); + } + { + var result_730; + result_730 = _({}).pickBy(predicate); + } + { + var result_731; + result_731 = _({}).chain().pickBy(predicate); + } +})(TestPickBy || (TestPickBy = {})); +// _.result +{ + var testResultPath; + var testResultDefaultValue; + var result_732; + result_732 = _.result({}, testResultPath); + result_732 = _.result({}, testResultPath, testResultDefaultValue); + result_732 = _({}).result(testResultPath); + result_732 = _({}).result(testResultPath, testResultDefaultValue); +} +// _.set +var TestSet; +(function (TestSet) { + var object; + var value = { a: 1, b: '', c: true }; + { + var result_733; + result_733 = _.set(object, '', any); + result_733 = _.set(object, ['a', 'b', 1], any); + result_733 = _.set(object, '', value); + result_733 = _.set(object, ['a', 'b', 1], value); + } + { + var result_734; + result_734 = _(object).set('', any); + result_734 = _(object).set(['a', 'b', 1], any); + result_734 = _(object).set('', value); + result_734 = _(object).set(['a', 'b', 1], value); + } + { + var result_735; + result_735 = _(object).chain().set('', any); + result_735 = _(object).chain().set(['a', 'b', 1], any); + result_735 = _(object).chain().set('', value); + result_735 = _(object).chain().set(['a', 'b', 1], value); + } +})(TestSet || (TestSet = {})); +// _.transform +var TestTransform; +(function (TestTransform) { + var array; + var dictionary; + { + var iterator; + var accumulator; + var result_736; + result_736 = _.transform(array); + result_736 = _.transform(array, iterator); + result_736 = _.transform(array, iterator, accumulator); + result_736 = _.transform(array, iterator, accumulator, any); + result_736 = _(array).transform().value(); + result_736 = _(array).transform(iterator).value(); + result_736 = _(array).transform(iterator, accumulator).value(); + result_736 = _(array).transform(iterator, accumulator, any).value(); + } + { + var iterator; + var accumulator; + var result_737; + result_737 = _.transform(array, iterator); + result_737 = _.transform(array, iterator, accumulator); + result_737 = _.transform(array, iterator, accumulator, any); + result_737 = _(array).transform(iterator).value(); + result_737 = _(array).transform(iterator, accumulator).value(); + result_737 = _(array).transform(iterator, accumulator, any).value(); + } + { + var iterator; + var accumulator; + var result_738; + result_738 = _.transform(dictionary); + result_738 = _.transform(dictionary, iterator); + result_738 = _.transform(dictionary, iterator, accumulator); + result_738 = _.transform(dictionary, iterator, accumulator, any); + result_738 = _(dictionary).transform().value(); + result_738 = _(dictionary).transform(iterator).value(); + result_738 = _(dictionary).transform(iterator, accumulator).value(); + result_738 = _(dictionary).transform(iterator, accumulator, any).value(); + } + { + var iterator; + var accumulator; + var result_739; + result_739 = _.transform(dictionary, iterator); + result_739 = _.transform(dictionary, iterator, accumulator); + result_739 = _.transform(dictionary, iterator, accumulator, any); + result_739 = _(dictionary).transform(iterator).value(); + result_739 = _(dictionary).transform(iterator, accumulator).value(); + result_739 = _(dictionary).transform(iterator, accumulator, any).value(); + } +})(TestTransform || (TestTransform = {})); +// _.values +var TestValues; +(function (TestValues) { + var object; + { + var result_740; + result_740 = _.values(object); + } + { + var result_741; + result_741 = _(object).values(); + } + { + var result_742; + result_742 = _(object).chain().values(); + } +})(TestValues || (TestValues = {})); +// _.valuesIn +var TestValuesIn; +(function (TestValuesIn) { + var object; + { + var result_743; + result_743 = _.valuesIn(object); + } + { + var result_744; + result_744 = _(object).valuesIn(); + } + { + var result_745; + result_745 = _(object).chain().valuesIn(); + } +})(TestValuesIn || (TestValuesIn = {})); +/********** + * String * + **********/ +// _.camelCase +var TestCamelCase; +(function (TestCamelCase) { + { + var result_746; + result_746 = _.camelCase('Foo Bar'); + result_746 = _('Foo Bar').camelCase(); + } + { + var result_747; + result_747 = _('Foo Bar').chain().camelCase(); + } +})(TestCamelCase || (TestCamelCase = {})); +// _.capitalize +var TestCapitalize; +(function (TestCapitalize) { + { + var result_748; + result_748 = _.capitalize('fred'); + result_748 = _('fred').capitalize(); + } + { + var result_749; + result_749 = _('fred').chain().capitalize(); + } +})(TestCapitalize || (TestCapitalize = {})); +// _.deburr +var TestDeburr; +(function (TestDeburr) { + { + var result_750; + result_750 = _.deburr('déjà vu'); + result_750 = _('déjà vu').deburr(); + } + { + var result_751; + result_751 = _('déjà vu').chain().deburr(); + } +})(TestDeburr || (TestDeburr = {})); +// _.endsWith +var TestEndsWith; +(function (TestEndsWith) { + { + var result_752; + result_752 = _.endsWith('abc', 'c'); + result_752 = _.endsWith('abc', 'c', 1); + result_752 = _('abc').endsWith('c'); + result_752 = _('abc').endsWith('c', 1); + } + { + var result_753; + result_753 = _('abc').chain().endsWith('c'); + result_753 = _('abc').chain().endsWith('c', 1); + } +})(TestEndsWith || (TestEndsWith = {})); +// _.escape +var TestEscape; +(function (TestEscape) { + { + var result_754; + result_754 = _.escape('fred, barney, & pebbles'); + result_754 = _('fred, barney, & pebbles').escape(); + } + { + var result_755; + result_755 = _('fred, barney, & pebbles').chain().escape(); + } +})(TestEscape || (TestEscape = {})); +// _.escapeRegExp +var TestEscapeRegExp; +(function (TestEscapeRegExp) { + { + var result_756; + result_756 = _.escapeRegExp('[lodash](https://lodash.com/)'); + result_756 = _('[lodash](https://lodash.com/)').escapeRegExp(); + } + { + var result_757; + result_757 = _('[lodash](https://lodash.com/)').chain().escapeRegExp(); + } +})(TestEscapeRegExp || (TestEscapeRegExp = {})); +// _.kebabCase +var TestKebabCase; +(function (TestKebabCase) { + { + var result_758; + result_758 = _.kebabCase('Foo Bar'); + result_758 = _('Foo Bar').kebabCase(); + } + { + var result_759; + result_759 = _('Foo Bar').chain().kebabCase(); + } +})(TestKebabCase || (TestKebabCase = {})); +// _.lowerCase +var TestLowerCase; +(function (TestLowerCase) { + { + var result_760; + result_760 = _.lowerCase('Foo Bar'); + result_760 = _('Foo Bar').lowerCase(); + } + { + var result_761; + result_761 = _('Foo Bar').chain().lowerCase(); + } +})(TestLowerCase || (TestLowerCase = {})); +// _.lowerFirst +var TestLowerFirst; +(function (TestLowerFirst) { + { + var result_762; + result_762 = _.lowerFirst('Foo Bar'); + result_762 = _('Foo Bar').lowerFirst(); + } + { + var result_763; + result_763 = _('Foo Bar').chain().lowerFirst(); + } +})(TestLowerFirst || (TestLowerFirst = {})); +// _.pad +var TestPad; +(function (TestPad) { + { + var result_764; + result_764 = _.pad('abd'); + result_764 = _.pad('abc', 8); + result_764 = _.pad('abc', 8, '_-'); + result_764 = _('abc').pad(); + result_764 = _('abc').pad(8); + result_764 = _('abc').pad(8, '_-'); + } + { + var result_765; + result_765 = _('abc').chain().pad(); + result_765 = _('abc').chain().pad(8); + result_765 = _('abc').chain().pad(8, '_-'); + } +})(TestPad || (TestPad = {})); +// _.padStart +var TestPadStart; +(function (TestPadStart) { + { + var result_766; + result_766 = _.padStart('abc'); + result_766 = _.padStart('abc', 6); + result_766 = _.padStart('abc', 6, '_-'); + result_766 = _('abc').padStart(); + result_766 = _('abc').padStart(6); + result_766 = _('abc').padStart(6, '_-'); + } + { + var result_767; + result_767 = _('abc').chain().padStart(); + result_767 = _('abc').chain().padStart(6); + result_767 = _('abc').chain().padStart(6, '_-'); + } +})(TestPadStart || (TestPadStart = {})); +// _.padEnd +var TestPadEnd; +(function (TestPadEnd) { + { + var result_768; + result_768 = _.padEnd('abc'); + result_768 = _.padEnd('abc', 6); + result_768 = _.padEnd('abc', 6, '_-'); + result_768 = _('abc').padEnd(); + result_768 = _('abc').padEnd(6); + result_768 = _('abc').padEnd(6, '_-'); + } + { + var result_769; + result_769 = _('abc').chain().padEnd(); + result_769 = _('abc').chain().padEnd(6); + result_769 = _('abc').chain().padEnd(6, '_-'); + } +})(TestPadEnd || (TestPadEnd = {})); +// _.parseInt +var TestParseInt; +(function (TestParseInt) { + { + var result_770; + result_770 = _.parseInt('08'); + result_770 = _.parseInt('08', 10); + result_770 = _('08').parseInt(); + result_770 = _('08').parseInt(10); + } + { + var result_771; + result_771 = _('08').chain().parseInt(); + result_771 = _('08').chain().parseInt(10); + } +})(TestParseInt || (TestParseInt = {})); +// _.repeat +var TestRepeat; +(function (TestRepeat) { + { + var result_772; + result_772 = _.repeat('*'); + result_772 = _.repeat('*', 3); + result_772 = _('*').repeat(); + result_772 = _('*').repeat(3); + } + { + var result_773; + result_773 = _('*').chain().repeat(); + result_773 = _('*').chain().repeat(3); + } +})(TestRepeat || (TestRepeat = {})); +// _.snakeCase +var TestSnakeCase; +(function (TestSnakeCase) { + { + var result_774; + result_774 = _.snakeCase('Foo Bar'); + result_774 = _('Foo Bar').snakeCase(); + } + { + var result_775; + result_775 = _('Foo Bar').chain().snakeCase(); + } +})(TestSnakeCase || (TestSnakeCase = {})); +// _.startCase +var TestStartCase; +(function (TestStartCase) { + { + var result_776; + result_776 = _.startCase('--foo-bar'); + result_776 = _('--foo-bar').startCase(); + } + { + var result_777; + result_777 = _('--foo-bar').chain().startCase(); + } +})(TestStartCase || (TestStartCase = {})); +// _.startsWith +var TestStartsWith; +(function (TestStartsWith) { + { + var result_778; + result_778 = _.startsWith('abc', 'a'); + result_778 = _.startsWith('abc', 'a', 1); + result_778 = _('abc').startsWith('a'); + result_778 = _('abc').startsWith('a', 1); + } + { + var result_779; + result_779 = _('abc').chain().startsWith('a'); + result_779 = _('abc').chain().startsWith('a', 1); + } +})(TestStartsWith || (TestStartsWith = {})); +// _.template +var TestTemplate; +(function (TestTemplate) { + var options; + { + var result_780; + result_780 = _.template(''); + result_780 = _.template('', options); + result_780 = _('').template(); + result_780 = _('').template(options); + } + { + var result_781; + result_781 = _('').chain().template(); + result_781 = _('').chain().template(options); + } +})(TestTemplate || (TestTemplate = {})); +// _.toLower +var TestToLower; +(function (TestToLower) { + { + var result_782; + result_782 = _.toLower('fred, barney, & pebbles'); + result_782 = _('fred, barney, & pebbles').toLower(); + } + { + var result_783; + result_783 = _('fred, barney, & pebbles').chain().toLower(); + } +})(TestToLower || (TestToLower = {})); +// _.toUpper +var TestToUpper; +(function (TestToUpper) { + { + var result_784; + result_784 = _.toUpper('fred, barney, & pebbles'); + result_784 = _('fred, barney, & pebbles').toUpper(); + } + { + var result_785; + result_785 = _('fred, barney, & pebbles').chain().toUpper(); + } +})(TestToUpper || (TestToUpper = {})); +// _.trim +var TestTrim; +(function (TestTrim) { + { + var result_786; + result_786 = _.trim(); + result_786 = _.trim(' abc '); + result_786 = _.trim('-_-abc-_-', '_-'); + result_786 = _('-_-abc-_-').trim(); + result_786 = _('-_-abc-_-').trim('_-'); + } + { + var result_787; + result_787 = _('-_-abc-_-').chain().trim(); + result_787 = _('-_-abc-_-').chain().trim('_-'); + } +})(TestTrim || (TestTrim = {})); +// _.trimStart +var TestTrimStart; +(function (TestTrimStart) { + { + var result_788; + result_788 = _.trimStart(); + result_788 = _.trimStart(' abc '); + result_788 = _.trimStart('-_-abc-_-', '_-'); + result_788 = _('-_-abc-_-').trimStart(); + result_788 = _('-_-abc-_-').trimStart('_-'); + } + { + var result_789; + result_789 = _('-_-abc-_-').chain().trimStart(); + result_789 = _('-_-abc-_-').chain().trimStart('_-'); + } +})(TestTrimStart || (TestTrimStart = {})); +// _.trimEnd +var TestTrimEnd; +(function (TestTrimEnd) { + { + var result_790; + result_790 = _.trimEnd(); + result_790 = _.trimEnd(' abc '); + result_790 = _.trimEnd('-_-abc-_-', '_-'); + result_790 = _('-_-abc-_-').trimEnd(); + result_790 = _('-_-abc-_-').trimEnd('_-'); + } + { + var result_791; + result_791 = _('-_-abc-_-').chain().trimEnd(); + result_791 = _('-_-abc-_-').chain().trimEnd('_-'); + } +})(TestTrimEnd || (TestTrimEnd = {})); +// _.truncate +var Testtruncate; +(function (Testtruncate) { + { + var result_792; + result_792 = _.truncate('hi-diddly-ho there, neighborino'); + result_792 = _.truncate('hi-diddly-ho there, neighborino', 24); + result_792 = _.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': ' ' }); + result_792 = _.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': /,? +/ }); + result_792 = _.truncate('hi-diddly-ho there, neighborino', { 'omission': ' […]' }); + result_792 = _('hi-diddly-ho there, neighborino').truncate(); + result_792 = _('hi-diddly-ho there, neighborino').truncate(24); + result_792 = _('hi-diddly-ho there, neighborino').truncate({ 'length': 24, 'separator': ' ' }); + result_792 = _('hi-diddly-ho there, neighborino').truncate({ 'length': 24, 'separator': /,? +/ }); + result_792 = _('hi-diddly-ho there, neighborino').truncate({ 'omission': ' […]' }); + } + { + var result_793; + result_793 = _('hi-diddly-ho there, neighborino').chain().truncate(); + result_793 = _('hi-diddly-ho there, neighborino').chain().truncate(24); + result_793 = _('hi-diddly-ho there, neighborino').chain().truncate({ 'length': 24, 'separator': ' ' }); + result_793 = _('hi-diddly-ho there, neighborino').chain().truncate({ 'length': 24, 'separator': /,? +/ }); + result_793 = _('hi-diddly-ho there, neighborino').chain().truncate({ 'omission': ' […]' }); + } +})(Testtruncate || (Testtruncate = {})); +// _.upperCase +var TestUpperCase; +(function (TestUpperCase) { + { + var result_794; + result_794 = _.upperCase('fred, barney, & pebbles'); + result_794 = _('fred, barney, & pebbles').upperCase(); + } + { + var result_795; + result_795 = _('fred, barney, & pebbles').chain().upperCase(); + } +})(TestUpperCase || (TestUpperCase = {})); +// _.upperFirst +var TestUpperFirst; +(function (TestUpperFirst) { + { + var result_796; + result_796 = _.upperFirst('fred, barney, & pebbles'); + result_796 = _('fred, barney, & pebbles').upperFirst(); + } + { + var result_797; + result_797 = _('fred, barney, & pebbles').chain().upperFirst(); + } +})(TestUpperFirst || (TestUpperFirst = {})); +// _.unescape +var TestUnescape; +(function (TestUnescape) { + { + var result_798; + result_798 = _.unescape('fred, barney, & pebbles'); + result_798 = _('fred, barney, & pebbles').unescape(); + } + { + var result_799; + result_799 = _('fred, barney, & pebbles').chain().unescape(); + } +})(TestUnescape || (TestUnescape = {})); +// _.words +var TestWords; +(function (TestWords) { + { + var result_800; + result_800 = _.words('fred, barney, & pebbles'); + result_800 = _.words('fred, barney, & pebbles', /[^, ]+/g); + result_800 = _('fred, barney, & pebbles').words(); + result_800 = _('fred, barney, & pebbles').words(/[^, ]+/g); + } + { + var result_801; + result_801 = _('fred, barney, & pebbles').chain().words(); + result_801 = _('fred, barney, & pebbles').chain().words(/[^, ]+/g); + } +})(TestWords || (TestWords = {})); +/*********** + * Utility * + ***********/ +// _.attempt +var TestAttempt; +(function (TestAttempt) { + var func; + { + var result_802; + result_802 = _.attempt(func); + result_802 = _(func).attempt(); + } + { + var result_803; + result_803 = _(func).chain().attempt(); + } +})(TestAttempt || (TestAttempt = {})); +// _.constant +var TestConstant; +(function (TestConstant) { + { + var result_804; + result: _.constant(42); + } + { + var result_805; + result: _.constant('a'); + } + { + var result_806; + result: _.constant(true); + } + { + var result_807; + result: _.constant(['a']); + } + { + var result_808; + result: _.constant({ a: 'a' }); + } + { + var result_809; + result: _(42).constant(); + } + { + var result_810; + result: _('a').constant(); + } + { + var result_811; + result: _(true).constant(); + } + { + var result_812; + result: _(['a']).constant(); + } + { + var result_813; + result: _({ a: 'a' }).constant(); + } + { + var result_814; + result: _(42).chain().constant(); + } + { + var result_815; + result: _('a').chain().constant(); + } + { + var result_816; + result: _(true).chain().constant(); + } + { + var result_817; + result: _(['a']).chain().constant(); + } + { + var result_818; + result: _({ a: 'a' }).chain().constant(); + } +})(TestConstant || (TestConstant = {})); +// _.identity +{ + var testIdentityValue; + var result_819; + result_819 = _.identity(testIdentityValue); + result_819 = _(testIdentityValue).identity(); +} +{ + var result_820; + result_820 = _(42).identity(); +} +{ + var result_821; + result_821 = _([]).identity(); +} +// _.iteratee +var TestIteratee; +(function (TestIteratee) { + { + var result_822; + result_822 = _.iteratee(Function); + result_822 = _.iteratee(Function, any); + } + { + var result_823; + result_823 = _.iteratee(''); + result_823 = _.iteratee('', any); + } + { + var result_824; + result_824 = _.iteratee({}); + result_824 = _.iteratee({}, any); + } + { + var result_825; + result_825 = _(Function).iteratee(); + result_825 = _(Function).iteratee(any); + } + { + var result_826; + result_826 = _('').iteratee(); + result_826 = _('').iteratee(any); + } + { + var result_827; + result_827 = _({}).iteratee(); + result_827 = _({}).iteratee(any); + } + { + var result_828; + result_828 = _(Function).chain().iteratee(); + result_828 = _(Function).chain().iteratee(any); + } + { + var result_829; + result_829 = _('').chain().iteratee(); + result_829 = _('').chain().iteratee(any); + } + { + var result_830; + result_830 = _({}).chain().iteratee(); + result_830 = _({}).chain().iteratee(any); + } +})(TestIteratee || (TestIteratee = {})); +// _.matches +var TestMatches; +(function (TestMatches) { + var source; + { + var result_831; + result_831 = _.matches(source); + } + { + var result_832; + result_832 = _.matches(source); + } + { + var result_833; + result_833 = _(source).matches(); + } + { + var result_834; + result_834 = _(source).chain().matches(); + } +})(TestMatches || (TestMatches = {})); +// _.matchesProperty +var TestMatches; +(function (TestMatches) { + var path; + var source; + { + var result_835; + result_835 = _.matchesProperty(path, source); + } + { + var result_836; + result_836 = _.matchesProperty(path, source); + } + { + var result_837; + result_837 = _(path).matchesProperty(source); + } + { + var result_838; + result_838 = _(path).matchesProperty(source); + } + { + var result_839; + result_839 = _(path).chain().matchesProperty(source); + } + { + var result_840; + result_840 = _(path).chain().matchesProperty(source); + } +})(TestMatches || (TestMatches = {})); +// _.method +var TestMethod; +(function (TestMethod) { + { + var result_841; + result_841 = _.method('a.0'); + result_841 = _.method('a.0', any); + result_841 = _.method('a.0', any, any); + result_841 = _.method('a.0', any, any, any); + result_841 = _.method(['a', 0]); + result_841 = _.method(['a', 0], any); + result_841 = _.method(['a', 0], any, any); + result_841 = _.method(['a', 0], any, any, any); + } + { + var result_842; + result_842 = _.method('a.0'); + result_842 = _.method('a.0', any); + result_842 = _.method('a.0', any, any); + result_842 = _.method('a.0', any, any, any); + result_842 = _.method(['a', 0]); + result_842 = _.method(['a', 0], any); + result_842 = _.method(['a', 0], any, any); + result_842 = _.method(['a', 0], any, any, any); + } + { + var result_843; + result_843 = _('a.0').method(); + result_843 = _('a.0').method(any); + result_843 = _('a.0').method(any, any); + result_843 = _('a.0').method(any, any, any); + result_843 = _(['a', 0]).method(); + result_843 = _(['a', 0]).method(any); + result_843 = _(['a', 0]).method(any, any); + result_843 = _(['a', 0]).method(any, any, any); + } + { + var result_844; + result_844 = _('a.0').method(); + result_844 = _('a.0').method(any); + result_844 = _('a.0').method(any, any); + result_844 = _('a.0').method(any, any, any); + result_844 = _(['a', 0]).method(); + result_844 = _(['a', 0]).method(any); + result_844 = _(['a', 0]).method(any, any); + result_844 = _(['a', 0]).method(any, any, any); + } + { + var result_845; + result_845 = _('a.0').chain().method(); + result_845 = _('a.0').chain().method(any); + result_845 = _('a.0').chain().method(any, any); + result_845 = _('a.0').chain().method(any, any, any); + result_845 = _(['a', 0]).chain().method(); + result_845 = _(['a', 0]).chain().method(any); + result_845 = _(['a', 0]).chain().method(any, any); + result_845 = _(['a', 0]).chain().method(any, any, any); + } + { + var result_846; + result_846 = _('a.0').chain().method(); + result_846 = _('a.0').chain().method(any); + result_846 = _('a.0').chain().method(any, any); + result_846 = _('a.0').chain().method(any, any, any); + result_846 = _(['a', 0]).chain().method(); + result_846 = _(['a', 0]).chain().method(any); + result_846 = _(['a', 0]).chain().method(any, any); + result_846 = _(['a', 0]).chain().method(any, any, any); + } +})(TestMethod || (TestMethod = {})); +// _.methodOf +var TestMethodOf; +(function (TestMethodOf) { + var object; + { + var result_847; + result_847 = _.methodOf(object); + result_847 = _.methodOf(object, any); + result_847 = _.methodOf(object, any, any); + result_847 = _.methodOf(object, any, any, any); + result_847 = _.methodOf(object); + result_847 = _.methodOf(object, any); + result_847 = _.methodOf(object, any, any); + result_847 = _.methodOf(object, any, any, any); + } + { + var result_848; + result_848 = _(object).methodOf(); + result_848 = _(object).methodOf(any); + result_848 = _(object).methodOf(any, any); + result_848 = _(object).methodOf(any, any, any); + } + { + var result_849; + result_849 = _(object).chain().methodOf(); + result_849 = _(object).chain().methodOf(any); + result_849 = _(object).chain().methodOf(any, any); + result_849 = _(object).chain().methodOf(any, any, any); + } +})(TestMethodOf || (TestMethodOf = {})); +// _.mixin +var TestMixin; +(function (TestMixin) { + var source; + var options; + { + var result_850; + result_850 = _.mixin({}, source); + result_850 = _.mixin({}, source, options); + result_850 = _.mixin(source); + result_850 = _.mixin(source, options); + } + { + var result_851; + result_851 = _({}).mixin(source); + result_851 = _({}).mixin(source, options); + result_851 = _(source).mixin(); + result_851 = _(source).mixin(options); + } + { + var result_852; + result_852 = _({}).chain().mixin(source); + result_852 = _({}).chain().mixin(source, options); + result_852 = _(source).chain().mixin(); + result_852 = _(source).chain().mixin(options); + } +})(TestMixin || (TestMixin = {})); +// _.noConflict +{ + var result_853; + result_853 = _.noConflict(); + result_853 = _(42).noConflict(); + result_853 = _([]).noConflict(); + result_853 = _({}).noConflict(); +} +// _.noop +var TestNoop; +(function (TestNoop) { + { + var result_854; + result_854 = _.noop(); + result_854 = _.noop(1); + result_854 = _.noop('a', 1); + result_854 = _.noop(true, 'a', 1); + result_854 = _('a').noop(true, 'a', 1); + result_854 = _([1]).noop(true, 'a', 1); + result_854 = _([]).noop(true, 'a', 1); + result_854 = _({}).noop(true, 'a', 1); + result_854 = _(any).noop(true, 'a', 1); + } + { + var result_855; + result_855 = _('a').chain().noop(true, 'a', 1); + result_855 = _([1]).chain().noop(true, 'a', 1); + result_855 = _([]).chain().noop(true, 'a', 1); + result_855 = _({}).chain().noop(true, 'a', 1); + result_855 = _(any).chain().noop(true, 'a', 1); + } +})(TestNoop || (TestNoop = {})); +// _.property +var TestProperty; +(function (TestProperty) { + { + var result_856; + result_856 = _.property('a.b[0]'); + result_856 = _.property(['a', 'b', 0]); + } + { + var result_857; + result_857 = _('a.b[0]').property(); + result_857 = _(['a', 'b', 0]).property(); + } + { + var result_858; + result_858 = _('a.b[0]').chain().property(); + result_858 = _(['a', 'b', 0]).chain().property(); + } +})(TestProperty || (TestProperty = {})); +// _.propertyOf +var TestPropertyOf; +(function (TestPropertyOf) { + var object; + { + var result_859; + result_859 = _.propertyOf({}); + result_859 = _.propertyOf(object); + } + { + var result_860; + result_860 = _({}).propertyOf(); + } + { + var result_861; + result_861 = _({}).chain().propertyOf(); + } +})(TestPropertyOf || (TestPropertyOf = {})); +// _.range +var TestRange; +(function (TestRange) { + { + var result_862; + result_862 = _.range(10); + result_862 = _.range(1, 11); + result_862 = _.range(0, 30, 5); + } + { + var result_863; + result_863 = _(10).range(); + result_863 = _(1).range(11); + result_863 = _(0).range(30, 5); + } + { + var result_864; + result_864 = _(10).chain().range(); + result_864 = _(1).chain().range(11); + result_864 = _(0).chain().range(30, 5); + } +})(TestRange || (TestRange = {})); +// _.rangeRight +var TestRangeRight; +(function (TestRangeRight) { + { + var result_865; + result_865 = _.rangeRight(10); + result_865 = _.rangeRight(1, 11); + result_865 = _.rangeRight(0, 30, 5); + } + { + var result_866; + result_866 = _(10).rangeRight(); + result_866 = _(1).rangeRight(11); + result_866 = _(0).rangeRight(30, 5); + } + { + var result_867; + result_867 = _(10).chain().rangeRight(); + result_867 = _(1).chain().rangeRight(11); + result_867 = _(0).chain().rangeRight(30, 5); + } +})(TestRangeRight || (TestRangeRight = {})); +// _.runInContext +{ + var result_868; + result_868 = _.runInContext(); + result_868 = _.runInContext({}); + result_868 = _({}).runInContext(); +} +// _.times +var TestTimes; +(function (TestTimes) { + var iteratee; + { + var result_869; + result_869 = _.times(42); + } + { + var result_870; + result_870 = _.times(42, iteratee); + result_870 = _.times(42, iteratee, any); + } + { + var result_871; + result_871 = _(42).times(); + } + { + var result_872; + result_872 = _(42).times(iteratee); + result_872 = _(42).times(iteratee, any); + } + { + var result_873; + result_873 = _(42).chain().times(); + } + { + var result_874; + result_874 = _(42).chain().times(iteratee); + result_874 = _(42).chain().times(iteratee, any); + } +})(TestTimes || (TestTimes = {})); +// _.toPath +var TestToPath; +(function (TestToPath) { + { + var result_875; + result_875 = _.toPath(true); + result_875 = _.toPath(1); + result_875 = _.toPath('a'); + result_875 = _.toPath(["a"]); + result_875 = _.toPath({}); + } + { + var result_876; + result_876 = _(true).toPath(); + result_876 = _(1).toPath(); + result_876 = _('a').toPath(); + result_876 = _([1]).toPath(); + result_876 = _(["a"]).toPath(); + result_876 = _({}).toPath(); + } +})(TestToPath || (TestToPath = {})); +// _.uniqueId +var TestUniqueId; +(function (TestUniqueId) { + { + var result_877; + result_877 = _.uniqueId(); + result_877 = _.uniqueId(''); + result_877 = _('').uniqueId(); + } + { + var result_878; + result_878 = _('').chain().uniqueId(); + } +})(TestUniqueId || (TestUniqueId = {})); +result = _.VERSION; +result = _.templateSettings; +// _.partial & _.partialRight +{ + function func0() { + return 42; + } + function func1(arg1) { + return arg1 * 2; + } + function func2(arg1, arg2) { + return arg1 * arg2.length; + } + function func3(arg1, arg2, arg3) { + return arg1 * arg2.length + (arg3 ? 1 : 0); + } + function func4(arg1, arg2, arg3, arg4) { + return arg1 * arg2.length + (arg3 ? 1 : 0) - arg4; + } + var res____; + var res1___; + var res_2__; + var res__3_; + var res___4; + var res12__; + var res1_3_; + var res1__4; + var res_23_; + var res_2_4; + var res__34; + var res123_; + var res12_4; + var res1_34; + var res_234; + var res1234; + // + // _.partial + // + // with arity 0 function + res____ = _.partial(func0); + // with arity 1 function + res____ = _.partial(func1, 42); + res1___ = _.partial(func1); + // with arity 2 function + res12__ = _.partial(func2); + res_2__ = _.partial(func2, 42); + res1___ = _.partial(func2, _, "foo"); + res____ = _.partial(func2, 42, "foo"); + // with arity 3 function + res123_ = _.partial(func3); + res_23_ = _.partial(func3, 42); + res1_3_ = _.partial(func3, _, "foo"); + res__3_ = _.partial(func3, 42, "foo"); + res12__ = _.partial(func3, _, _, true); + res_2__ = _.partial(func3, 42, _, true); + res1___ = _.partial(func3, _, "foo", true); + res____ = _.partial(func3, 42, "foo", true); + // with arity 4 function + res1234 = _.partial(func4); + res_234 = _.partial(func4, 42); + res1_34 = _.partial(func4, _, "foo"); + res__34 = _.partial(func4, 42, "foo"); + res12_4 = _.partial(func4, _, _, true); + res_2_4 = _.partial(func4, 42, _, true); + res1__4 = _.partial(func4, _, "foo", true); + res___4 = _.partial(func4, 42, "foo", true); + res123_ = _.partial(func4, _, _, _, 100); + res_23_ = _.partial(func4, 42, _, _, 100); + res1_3_ = _.partial(func4, _, "foo", _, 100); + res__3_ = _.partial(func4, 42, "foo", _, 100); + res12__ = _.partial(func4, _, _, true, 100); + res_2__ = _.partial(func4, 42, _, true, 100); + res1___ = _.partial(func4, _, "foo", true, 100); + res____ = _.partial(func4, 42, "foo", true, 100); + // + // _.partialRight + // + // with arity 0 function + res____ = _.partialRight(func0); + // with arity 1 function + res____ = _.partialRight(func1, 42); + res1___ = _.partialRight(func1); + // with arity 2 function + res12__ = _.partialRight(func2); + res_2__ = _.partialRight(func2, 42, _); + res1___ = _.partialRight(func2, "foo"); + res____ = _.partialRight(func2, 42, "foo"); + // with arity 3 function + res123_ = _.partialRight(func3); + res_23_ = _.partialRight(func3, 42, _, _); + res1_3_ = _.partialRight(func3, "foo", _); + res__3_ = _.partialRight(func3, 42, "foo", _); + res12__ = _.partialRight(func3, true); + res_2__ = _.partialRight(func3, 42, _, true); + res1___ = _.partialRight(func3, "foo", true); + res____ = _.partialRight(func3, 42, "foo", true); + // with arity 4 function + res1234 = _.partialRight(func4); + res_234 = _.partialRight(func4, 42, _, _, _); + res1_34 = _.partialRight(func4, "foo", _, _); + res__34 = _.partialRight(func4, 42, "foo", _, _); + res12_4 = _.partialRight(func4, true, _); + res_2_4 = _.partialRight(func4, 42, _, true, _); + res1__4 = _.partialRight(func4, "foo", true, _); + res___4 = _.partialRight(func4, 42, "foo", true, _); + res123_ = _.partialRight(func4, 100); + res_23_ = _.partialRight(func4, 42, _, _, 100); + res1_3_ = _.partialRight(func4, "foo", _, 100); + res__3_ = _.partialRight(func4, 42, "foo", _, 100); + res12__ = _.partialRight(func4, true, 100); + res_2__ = _.partialRight(func4, 42, _, true, 100); + res1___ = _.partialRight(func4, "foo", true, 100); + res____ = _.partialRight(func4, 42, "foo", true, 100); +} diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index af33b66ac..c659fce1a 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3945,8 +3945,57 @@ module TestKeyBy { } } -result = _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); -result = _.invokeMap([123, 456], String.prototype.split, ''); +//_.invokeMap +module TestInvokeMap { + let numArray = [4, 2, 1, 3] + let numDict: _.Dictionary = { + a: 1, + b: 2, + c: 3, + d: 4 + } + + { + let result: string[]; + result = _.invokeMap(numArray, 'toString'); + result = _.invokeMap(numArray, 'toString', 2); + result = _.invokeMap(numArray, 'toString'); + result = _.invokeMap(numArray, 'toString', 2); + result = _(numArray).invokeMap('toString').value(); + result = _(numArray).invokeMap('toString', 2).value(); + result = _(numArray).chain().invokeMap('toString').value(); + result = _(numArray).chain().invokeMap('toString', 2).value(); + + result = _.invokeMap(numArray, Number.prototype.toString); + result = _.invokeMap(numArray, Number.prototype.toString, 2); + result = _.invokeMap(numArray, Number.prototype.toString); + result = _.invokeMap(numArray, Number.prototype.toString, 2); + result = _(numArray).invokeMap(Number.prototype.toString).value(); + result = _(numArray).invokeMap(Number.prototype.toString, 2).value(); + result = _(numArray).chain().invokeMap(Number.prototype.toString).value(); + result = _(numArray).chain().invokeMap(Number.prototype.toString, 2).value(); + } + { + let result: _.Dictionary + result = _.invokeMap(numDict, 'toString'); + result = _.invokeMap(numDict, 'toString', 2); + result = _.invokeMap(numDict, 'toString'); + result = _.invokeMap(numDict, 'toString', 2); + result = _(numDict).invokeMap('toString').value(); + result = _(numDict).invokeMap('toString', 2).value(); + result = _(numDict).chain().invokeMap('toString').value(); + result = _(numDict).chain().invokeMap('toString', 2).value(); + + result = _.invokeMap(numDict, Number.prototype.toString); + result = _.invokeMap(numDict, Number.prototype.toString, 2); + result = _.invokeMap(numDict, Number.prototype.toString); + result = _.invokeMap(numDict, Number.prototype.toString, 2); + result = _(numDict).invokeMap(Number.prototype.toString).value(); + result = _(numDict).invokeMap(Number.prototype.toString, 2).value(); + result = _(numDict).chain().invokeMap(Number.prototype.toString).value(); + result = _(numDict).chain().invokeMap(Number.prototype.toString, 2).value(); + } +} // _.map module TestMap { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index f9249d16b..dfe2c77c7 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -6782,50 +6782,130 @@ declare module _ { * @param methodName The name of the method to invoke. * @param args Arguments to invoke the method with. **/ - invokeMap( - collection: Array, + invokeMap( + collection: TValue[], methodName: string, - ...args: any[]): any; + ...args: any[]): TResult[]; /** * @see _.invokeMap **/ - invokeMap( - collection: List, + invokeMap( + collection: Dictionary, methodName: string, - ...args: any[]): any; + ...args: any[]): Dictionary; /** * @see _.invokeMap **/ - invokeMap( - collection: Dictionary, + invokeMap( + collection: {}[], methodName: string, - ...args: any[]): any; + ...args: any[]): TResult[]; /** * @see _.invokeMap **/ - invokeMap( - collection: Array, - method: Function, - ...args: any[]): any; + invokeMap( + collection: Dictionary<{}>, + methodName: string, + ...args: any[]): Dictionary; /** * @see _.invokeMap **/ - invokeMap( - collection: List, - method: Function, - ...args: any[]): any; + invokeMap( + collection: TValue[], + method: (...args: any[]) => TResult, + ...args: any[]): TResult[]; /** * @see _.invokeMap **/ - invokeMap( - collection: Dictionary, - method: Function, - ...args: any[]): any; + invokeMap( + collection: Dictionary, + method: (...args: any[]) => TResult, + ...args: any[]): Dictionary; + + /** + * @see _.invokeMap + **/ + invokeMap( + collection: {}[], + method: (...args: any[]) => TResult, + ...args: any[]): TResult[]; + + /** + * @see _.invokeMap + **/ + invokeMap( + collection: Dictionary<{}>, + method: (...args: any[]) => TResult, + ...args: any[]): Dictionary; + } + + interface LoDashImplicitArrayWrapper { + /** + * @see _.invokeMap + **/ + invokeMap( + methodName: string, + ...args: any[]): LoDashImplicitArrayWrapper; + + /** + * @see _.invokeMap + **/ + invokeMap( + method: (...args: any[]) => TResult, + ...args: any[]): LoDashImplicitArrayWrapper; + } + + interface LoDashImplicitObjectWrapper { + /** + * @see _.invokeMap + **/ + invokeMap( + methodName: string, + ...args: any[]): LoDashImplicitObjectWrapper<_.Dictionary>; + + /** + * @see _.invokeMap + **/ + invokeMap( + method: (...args: any[]) => TResult, + ...args: any[]): LoDashImplicitObjectWrapper<_.Dictionary>; + } + + interface LoDashExplicitArrayWrapper { + /** + * @see _.invokeMap + **/ + invokeMap( + methodName: string, + ...args: any[]): LoDashExplicitArrayWrapper; + + /** + * @see _.invokeMap + **/ + invokeMap( + method: (...args: any[]) => TResult, + ...args: any[]): LoDashExplicitArrayWrapper; + } + + interface LoDashExplicitObjectWrapper { + /** + * @see _.invokeMap + **/ + invokeMap( + methodName: string, + ...args: any[]): LoDashExplicitObjectWrapper<_.Dictionary>; + + /** + * @see _.invokeMap + **/ + invokeMap( + method: (...args: any[]) => TResult, + ...args: any[]): LoDashExplicitObjectWrapper<_.Dictionary>; } //_.map From 5b97a931e0b1e92b63289deea19810e0d64854cf Mon Sep 17 00:00:00 2001 From: Kevin Grasso Date: Fri, 29 Jan 2016 00:37:44 -0500 Subject: [PATCH 13/59] lodash: result of using a dictionary in _.invokeMap is an array, not another dictionary --- lodash/lodash-tests.js | 7797 ---------------------------------------- lodash/lodash-tests.ts | 76 +- lodash/lodash.d.ts | 16 +- 3 files changed, 44 insertions(+), 7845 deletions(-) delete mode 100644 lodash/lodash-tests.js diff --git a/lodash/lodash-tests.js b/lodash/lodash-tests.js deleted file mode 100644 index b940a47c1..000000000 --- a/lodash/lodash-tests.js +++ /dev/null @@ -1,7797 +0,0 @@ -/// -var __extends = (this && this.__extends) || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -}; -var foodsOrganic = [ - { name: 'banana', organic: true }, - { name: 'beet', organic: false }, -]; -var foodsType = [ - { name: 'apple', type: 'fruit' }, - { name: 'banana', type: 'fruit' }, - { name: 'beet', type: 'vegetable' } -]; -var foodsCombined = [ - { 'name': 'apple', 'organic': false, 'type': 'fruit' }, - { 'name': 'carrot', 'organic': true, 'type': 'vegetable' } -]; -var stoogesQuotes = [ - { 'name': 'curly', 'quotes': ['Oh, a wise guy, eh?', 'Poifect!'] }, - { 'name': 'moe', 'quotes': ['Spread out!', 'You knucklehead!'] } -]; -var stoogesAges = [ - { 'name': 'moe', 'age': 40 }, - { 'name': 'larry', 'age': 50 } -]; -var stoogesAgesDict = { - first: { 'name': 'moe', 'age': 40 }, - second: { 'name': 'larry', 'age': 50 } -}; -var stoogesCombined = [ - { 'name': 'curly', 'age': 30, 'quotes': ['Oh, a wise guy, eh?', 'Poifect!'] }, - { 'name': 'moe', 'age': 40, 'quotes': ['Spread out!', 'You knucklehead!'] } -]; -var keys = [ - { 'dir': 'left', 'code': 97 }, - { 'dir': 'right', 'code': 100 } -]; -var Dog = (function () { - function Dog(name) { - this.name = name; - } - Dog.prototype.bark = function () { - console.log('Woof, woof!'); - }; - return Dog; -})(); -var result; -var any; -// _.MapCache -var testMapCache; -result = testMapCache.delete; -result = testMapCache.get; -result = testMapCache.has; -result = testMapCache.set; -// _ -var TestWrapper; -(function (TestWrapper) { - { - var result_1; - result_1 = _(''); - } - { - var result_2; - result_2 = _(42); - } - { - var result_3; - result_3 = _(true); - } - { - var result_4; - result_4 = _(['']); - } - { - var result_5; - result_5 = _({ a: '' }); - } -})(TestWrapper || (TestWrapper = {})); -//Wrapped array shortcut methods -result = _([1, 2, 3, 4]).join(','); -result = _([1, 2, 3, 4]).pop(); -result = _([1, 2, 3, 4]).push(5, 6, 7); -result = _([1, 2, 3, 4]).shift(); -result = _([1, 2, 3, 4]).sort(function (a, b) { return 1; }); -result = _([1, 2, 3, 4]).splice(1); -result = _([1, 2, 3, 4]).splice(1, 2, 5, 6); -result = _([1, 2, 3, 4]).unshift(5, 6); -/********* - * Array * - *********/ -// _.chunk -var TestChunk; -(function (TestChunk) { - var array; - var list; - { - var result_6; - result_6 = _.chunk(array); - result_6 = _.chunk(array, 42); - result_6 = _.chunk(list); - result_6 = _.chunk(list, 42); - } - { - var result_7; - result_7 = _(array).chunk(); - result_7 = _(array).chunk(42); - result_7 = _(list).chunk(); - result_7 = _(list).chunk(42); - } - { - var result_8; - result_8 = _(array).chain().chunk(); - result_8 = _(array).chain().chunk(42); - result_8 = _(list).chain().chunk(); - result_8 = _(list).chain().chunk(42); - } -})(TestChunk || (TestChunk = {})); -// _.compact -var TestCompact; -(function (TestCompact) { - var array; - var list; - { - var result_9; - result_9 = _.compact(); - result_9 = _.compact(array); - result_9 = _.compact(list); - } - { - var result_10; - result_10 = _(array).compact(); - result_10 = _(list).compact(); - } - { - var result_11; - result_11 = _(array).chain().compact(); - result_11 = _(list).chain().compact(); - } -})(TestCompact || (TestCompact = {})); -// _.difference -var TestDifference; -(function (TestDifference) { - var array; - var list; - { - var result_12; - result_12 = _.difference(array); - result_12 = _.difference(array, array); - result_12 = _.difference(array, list, array); - result_12 = _.difference(array, array, list, array); - result_12 = _.difference(list); - result_12 = _.difference(list, list); - result_12 = _.difference(list, array, list); - result_12 = _.difference(list, list, array, list); - } - { - var result_13; - result_13 = _(array).difference(); - result_13 = _(array).difference(array); - result_13 = _(array).difference(list, array); - result_13 = _(array).difference(array, list, array); - result_13 = _(list).difference(); - result_13 = _(list).difference(list); - result_13 = _(list).difference(array, list); - result_13 = _(list).difference(list, array, list); - } - { - var result_14; - result_14 = _(array).chain().difference(); - result_14 = _(array).chain().difference(array); - result_14 = _(array).chain().difference(list, array); - result_14 = _(array).chain().difference(array, list, array); - result_14 = _(list).chain().difference(); - result_14 = _(list).chain().difference(list); - result_14 = _(list).chain().difference(array, list); - result_14 = _(list).chain().difference(list, array, list); - } -})(TestDifference || (TestDifference = {})); -// _.drop -{ - var array; - var list; - { - var result_15; - result_15 = _.drop(array); - result_15 = _.drop(array, 42); - result_15 = _.drop(list); - result_15 = _.drop(list, 42); - } - { - var result_16; - result_16 = _(array).drop(); - result_16 = _(array).drop(42); - result_16 = _(list).drop(); - result_16 = _(list).drop(42); - } - { - var result_17; - result_17 = _(array).chain().drop(); - result_17 = _(array).chain().drop(42); - result_17 = _(list).chain().drop(); - result_17 = _(list).chain().drop(42); - } -} -// _.dropRight -var TestDropRight; -(function (TestDropRight) { - var array; - var list; - { - var result_18; - result_18 = _.dropRight(array); - result_18 = _.dropRight(array, 42); - result_18 = _.dropRight(list); - result_18 = _.dropRight(list, 42); - } - { - var result_19; - result_19 = _(array).dropRight(); - result_19 = _(array).dropRight(42); - result_19 = _(list).dropRight(); - result_19 = _(list).dropRight(42); - } - { - var result_20; - result_20 = _(array).chain().dropRight(); - result_20 = _(array).chain().dropRight(42); - result_20 = _(list).chain().dropRight(); - result_20 = _(list).chain().dropRight(42); - } -})(TestDropRight || (TestDropRight = {})); -// _.dropRightWhile -var TestDropRightWhile; -(function (TestDropRightWhile) { - var array; - var list; - var predicateFn; - { - var result_21; - result_21 = _.dropRightWhile(array); - result_21 = _.dropRightWhile(array, predicateFn); - result_21 = _.dropRightWhile(array, predicateFn, any); - result_21 = _.dropRightWhile(array, ''); - result_21 = _.dropRightWhile(array, '', any); - result_21 = _.dropRightWhile(array, { a: 42 }); - result_21 = _.dropRightWhile(list); - result_21 = _.dropRightWhile(list, predicateFn); - result_21 = _.dropRightWhile(list, predicateFn, any); - result_21 = _.dropRightWhile(list, ''); - result_21 = _.dropRightWhile(list, '', any); - result_21 = _.dropRightWhile(list, { a: 42 }); - } - { - var result_22; - result_22 = _(array).dropRightWhile(); - result_22 = _(array).dropRightWhile(predicateFn); - result_22 = _(array).dropRightWhile(predicateFn, any); - result_22 = _(array).dropRightWhile(''); - result_22 = _(array).dropRightWhile('', any); - result_22 = _(array).dropRightWhile({ a: 42 }); - result_22 = _(list).dropRightWhile(); - result_22 = _(list).dropRightWhile(predicateFn); - result_22 = _(list).dropRightWhile(predicateFn, any); - result_22 = _(list).dropRightWhile(''); - result_22 = _(list).dropRightWhile('', any); - result_22 = _(list).dropRightWhile({ a: 42 }); - } - { - var result_23; - result_23 = _(array).chain().dropRightWhile(); - result_23 = _(array).chain().dropRightWhile(predicateFn); - result_23 = _(array).chain().dropRightWhile(predicateFn, any); - result_23 = _(array).chain().dropRightWhile(''); - result_23 = _(array).chain().dropRightWhile('', any); - result_23 = _(array).chain().dropRightWhile({ a: 42 }); - result_23 = _(list).chain().dropRightWhile(); - result_23 = _(list).chain().dropRightWhile(predicateFn); - result_23 = _(list).chain().dropRightWhile(predicateFn, any); - result_23 = _(list).chain().dropRightWhile(''); - result_23 = _(list).chain().dropRightWhile('', any); - result_23 = _(list).chain().dropRightWhile({ a: 42 }); - } -})(TestDropRightWhile || (TestDropRightWhile = {})); -// _.dropWhile -var TestDropWhile; -(function (TestDropWhile) { - var array; - var list; - var predicateFn; - { - var result_24; - result_24 = _.dropWhile(array); - result_24 = _.dropWhile(array, predicateFn); - result_24 = _.dropWhile(array, predicateFn, any); - result_24 = _.dropWhile(array, ''); - result_24 = _.dropWhile(array, '', any); - result_24 = _.dropWhile(array, { a: 42 }); - result_24 = _.dropWhile(list); - result_24 = _.dropWhile(list, predicateFn); - result_24 = _.dropWhile(list, predicateFn, any); - result_24 = _.dropWhile(list, ''); - result_24 = _.dropWhile(list, '', any); - result_24 = _.dropWhile(list, { a: 42 }); - } - { - var result_25; - result_25 = _(array).dropWhile(); - result_25 = _(array).dropWhile(predicateFn); - result_25 = _(array).dropWhile(predicateFn, any); - result_25 = _(array).dropWhile(''); - result_25 = _(array).dropWhile('', any); - result_25 = _(array).dropWhile({ a: 42 }); - result_25 = _(list).dropWhile(); - result_25 = _(list).dropWhile(predicateFn); - result_25 = _(list).dropWhile(predicateFn, any); - result_25 = _(list).dropWhile(''); - result_25 = _(list).dropWhile('', any); - result_25 = _(list).dropWhile({ a: 42 }); - } - { - var result_26; - result_26 = _(array).chain().dropWhile(); - result_26 = _(array).chain().dropWhile(predicateFn); - result_26 = _(array).chain().dropWhile(predicateFn, any); - result_26 = _(array).chain().dropWhile(''); - result_26 = _(array).chain().dropWhile('', any); - result_26 = _(array).chain().dropWhile({ a: 42 }); - result_26 = _(list).chain().dropWhile(); - result_26 = _(list).chain().dropWhile(predicateFn); - result_26 = _(list).chain().dropWhile(predicateFn, any); - result_26 = _(list).chain().dropWhile(''); - result_26 = _(list).chain().dropWhile('', any); - result_26 = _(list).chain().dropWhile({ a: 42 }); - } -})(TestDropWhile || (TestDropWhile = {})); -// _.fill -var TestFill; -(function (TestFill) { - var array; - var list; - { - var result_27; - result_27 = _.fill(array, 42); - result_27 = _.fill(array, 42, 0); - result_27 = _.fill(array, 42, 0, 10); - } - { - var result_28; - result_28 = _.fill(list, 42); - result_28 = _.fill(list, 42, 0); - result_28 = _.fill(list, 42, 0, 10); - } - { - var result_29; - result_29 = _(array).fill(42); - result_29 = _(array).fill(42, 0); - result_29 = _(array).fill(42, 0, 10); - } - { - var result_30; - result_30 = _(list).fill(42); - result_30 = _(list).fill(42, 0); - result_30 = _(list).fill(42, 0, 10); - } - { - var result_31; - result_31 = _(array).chain().fill(42); - result_31 = _(array).chain().fill(42, 0); - result_31 = _(array).chain().fill(42, 0, 10); - } - { - var result_32; - result_32 = _(list).chain().fill(42); - result_32 = _(list).chain().fill(42, 0); - result_32 = _(list).chain().fill(42, 0, 10); - } -})(TestFill || (TestFill = {})); -// _.findIndex -var TestFindIndex; -(function (TestFindIndex) { - var array; - var list; - var predicateFn; - { - var result_33; - result_33 = _.findIndex(array); - result_33 = _.findIndex(array, predicateFn); - result_33 = _.findIndex(array, predicateFn, any); - result_33 = _.findIndex(array, ''); - result_33 = _.findIndex(array, '', any); - result_33 = _.findIndex(array, { a: 42 }); - result_33 = _.findIndex(list); - result_33 = _.findIndex(list, predicateFn); - result_33 = _.findIndex(list, predicateFn, any); - result_33 = _.findIndex(list, ''); - result_33 = _.findIndex(list, '', any); - result_33 = _.findIndex(list, { a: 42 }); - result_33 = _(array).findIndex(); - result_33 = _(array).findIndex(predicateFn); - result_33 = _(array).findIndex(predicateFn, any); - result_33 = _(array).findIndex(''); - result_33 = _(array).findIndex('', any); - result_33 = _(array).findIndex({ a: 42 }); - result_33 = _(list).findIndex(); - result_33 = _(list).findIndex(predicateFn); - result_33 = _(list).findIndex(predicateFn, any); - result_33 = _(list).findIndex(''); - result_33 = _(list).findIndex('', any); - result_33 = _(list).findIndex({ a: 42 }); - } - { - var result_34; - result_34 = _(array).chain().findIndex(); - result_34 = _(array).chain().findIndex(predicateFn); - result_34 = _(array).chain().findIndex(predicateFn, any); - result_34 = _(array).chain().findIndex(''); - result_34 = _(array).chain().findIndex('', any); - result_34 = _(array).chain().findIndex({ a: 42 }); - result_34 = _(list).chain().findIndex(); - result_34 = _(list).chain().findIndex(predicateFn); - result_34 = _(list).chain().findIndex(predicateFn, any); - result_34 = _(list).chain().findIndex(''); - result_34 = _(list).chain().findIndex('', any); - result_34 = _(list).chain().findIndex({ a: 42 }); - } -})(TestFindIndex || (TestFindIndex = {})); -// _.findLastIndex -var TestFindLastIndex; -(function (TestFindLastIndex) { - var array; - var list; - var predicateFn; - { - var result_35; - result_35 = _.findLastIndex(array); - result_35 = _.findLastIndex(array, predicateFn); - result_35 = _.findLastIndex(array, predicateFn, any); - result_35 = _.findLastIndex(array, ''); - result_35 = _.findLastIndex(array, '', any); - result_35 = _.findLastIndex(array, { a: 42 }); - result_35 = _.findLastIndex(list); - result_35 = _.findLastIndex(list, predicateFn); - result_35 = _.findLastIndex(list, predicateFn, any); - result_35 = _.findLastIndex(list, ''); - result_35 = _.findLastIndex(list, '', any); - result_35 = _.findLastIndex(list, { a: 42 }); - result_35 = _(array).findLastIndex(); - result_35 = _(array).findLastIndex(predicateFn); - result_35 = _(array).findLastIndex(predicateFn, any); - result_35 = _(array).findLastIndex(''); - result_35 = _(array).findLastIndex('', any); - result_35 = _(array).findLastIndex({ a: 42 }); - result_35 = _(list).findLastIndex(); - result_35 = _(list).findLastIndex(predicateFn); - result_35 = _(list).findLastIndex(predicateFn, any); - result_35 = _(list).findLastIndex(''); - result_35 = _(list).findLastIndex('', any); - result_35 = _(list).findLastIndex({ a: 42 }); - } - { - var result_36; - result_36 = _(array).chain().findLastIndex(); - result_36 = _(array).chain().findLastIndex(predicateFn); - result_36 = _(array).chain().findLastIndex(predicateFn, any); - result_36 = _(array).chain().findLastIndex(''); - result_36 = _(array).chain().findLastIndex('', any); - result_36 = _(array).chain().findLastIndex({ a: 42 }); - result_36 = _(list).chain().findLastIndex(); - result_36 = _(list).chain().findLastIndex(predicateFn); - result_36 = _(list).chain().findLastIndex(predicateFn, any); - result_36 = _(list).chain().findLastIndex(''); - result_36 = _(list).chain().findLastIndex('', any); - result_36 = _(list).chain().findLastIndex({ a: 42 }); - } -})(TestFindLastIndex || (TestFindLastIndex = {})); -// _.first -var TestFirst; -(function (TestFirst) { - var array; - var list; - var result; - result = _.first(array); - result = _.first(list); - result = _(array).first(); - result = _(list).first(); -})(TestFirst || (TestFirst = {})); -// _.flatten -var TestFlatten; -(function (TestFlatten) { - { - var result_37; - result_37 = _.flatten('abc'); - } - { - var result_38; - result_38 = _.flatten([1, 2, 3]); - result_38 = _.flatten([1, [2, 3]]); - result_38 = _.flatten([1, [2, [3]]], true); - result_38 = _.flatten([1, [2, [3]], [[4]]], true); - result_38 = _.flatten({ 0: 1, 1: 2, 2: 3, length: 3 }); - result_38 = _.flatten({ 0: 1, 1: [2, 3], length: 2 }); - result_38 = _.flatten({ 0: 1, 1: [2, [3]], length: 2 }, true); - result_38 = _.flatten({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }, true); - } - { - var result_39; - result_39 = _.flatten([1, [2, [3]]]); - result_39 = _.flatten([1, [2, [3]], [[4]]]); - result_39 = _.flatten({ 0: 1, 1: [2, [3]], length: 2 }); - result_39 = _.flatten({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }); - } - { - var result_40; - result_40 = _('abc').flatten(); - } - { - var result_41; - result_41 = _([1, 2, 3]).flatten(); - result_41 = _([1, [2, 3]]).flatten(); - result_41 = _([1, [2, [3]]]).flatten(true); - result_41 = _([1, [2, [3]], [[4]]]).flatten(true); - result_41 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).flatten(); - result_41 = _({ 0: 1, 1: [2, 3], length: 2 }).flatten(); - result_41 = _({ 0: 1, 1: [2, [3]], length: 2 }).flatten(true); - result_41 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flatten(true); - } - { - var result_42; - result_42 = _([1, [2, [3]]]).flatten(); - result_42 = _([1, [2, [3]], [[4]]]).flatten(); - result_42 = _({ 0: 1, 1: [2, [3]], length: 2 }).flatten(); - result_42 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flatten(); - } - { - var result_43; - result_43 = _('abc').chain().flatten(); - } - { - var result_44; - result_44 = _([1, 2, 3]).chain().flatten(); - result_44 = _([1, [2, 3]]).chain().flatten(); - result_44 = _([1, [2, [3]]]).chain().flatten(true); - result_44 = _([1, [2, [3]], [[4]]]).chain().flatten(true); - result_44 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).chain().flatten(); - result_44 = _({ 0: 1, 1: [2, 3], length: 2 }).chain().flatten(); - result_44 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flatten(true); - result_44 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flatten(true); - } - { - var result_45; - result_45 = _([1, [2, [3]]]).chain().flatten(); - result_45 = _([1, [2, [3]], [[4]]]).chain().flatten(); - result_45 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flatten(); - result_45 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flatten(); - } -})(TestFlatten || (TestFlatten = {})); -// _.flattenDeep -var TestFlattenDeep; -(function (TestFlattenDeep) { - { - var result_46; - result_46 = _.flattenDeep('abc'); - } - { - var result_47; - result_47 = _.flattenDeep([1, 2, 3]); - result_47 = _.flattenDeep([1, [2, 3]]); - result_47 = _.flattenDeep([1, [2, [3]]]); - result_47 = _.flattenDeep([1, [2, [3]], [[4]]]); - result_47 = _.flattenDeep({ 0: 1, 1: 2, 2: 3, length: 3 }); - result_47 = _.flattenDeep({ 0: 1, 1: [2, 3], length: 2 }); - result_47 = _.flattenDeep({ 0: 1, 1: [2, [3]], length: 2 }); - result_47 = _.flattenDeep({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }); - } - { - var result_48; - result_48 = _('abc').flattenDeep(); - } - { - var result_49; - result_49 = _([1, 2, 3]).flattenDeep(); - result_49 = _([1, [2, 3]]).flattenDeep(); - result_49 = _([1, [2, [3]]]).flattenDeep(); - result_49 = _([1, [2, [3]], [[4]]]).flattenDeep(); - result_49 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).flattenDeep(); - result_49 = _({ 0: 1, 1: [2, 3], length: 2 }).flattenDeep(); - result_49 = _({ 0: 1, 1: [2, [3]], length: 2 }).flattenDeep(); - result_49 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flattenDeep(); - } - { - var result_50; - result_50 = _([1, [2, [3]]]).flattenDeep(); - result_50 = _([1, [2, [3]], [[4]]]).flattenDeep(); - result_50 = _({ 0: 1, 1: [2, [3]], length: 2 }).flattenDeep(); - result_50 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).flattenDeep(); - } - { - var result_51; - result_51 = _('abc').chain().flattenDeep(); - } - { - var result_52; - result_52 = _([1, 2, 3]).chain().flattenDeep(); - result_52 = _([1, [2, 3]]).chain().flattenDeep(); - result_52 = _([1, [2, [3]]]).chain().flattenDeep(); - result_52 = _([1, [2, [3]], [[4]]]).chain().flattenDeep(); - result_52 = _({ 0: 1, 1: 2, 2: 3, length: 3 }).chain().flattenDeep(); - result_52 = _({ 0: 1, 1: [2, 3], length: 2 }).chain().flattenDeep(); - result_52 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flattenDeep(); - result_52 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flattenDeep(); - } - { - var result_53; - result_53 = _([1, [2, [3]]]).chain().flattenDeep(); - result_53 = _([1, [2, [3]], [[4]]]).chain().flattenDeep(); - result_53 = _({ 0: 1, 1: [2, [3]], length: 2 }).chain().flattenDeep(); - result_53 = _({ 0: 1, 1: [2, [3]], 2: [[4]], length: 3 }).chain().flattenDeep(); - } -})(TestFlattenDeep || (TestFlattenDeep = {})); -// _.head -var TestHead; -(function (TestHead) { - var array; - var list; - var result; - result = _.head(array); - result = _.head(list); - result = _(array).head(); - result = _(list).head(); -})(TestHead || (TestHead = {})); -// _.indexOf -var TestIndexOf; -(function (TestIndexOf) { - var array; - var list; - var value; - { - var result_54; - result_54 = _.indexOf(array, value); - result_54 = _.indexOf(array, value, true); - result_54 = _.indexOf(array, value, 42); - result_54 = _.indexOf(list, value); - result_54 = _.indexOf(list, value, true); - result_54 = _.indexOf(list, value, 42); - result_54 = _(array).indexOf(value); - result_54 = _(array).indexOf(value, true); - result_54 = _(array).indexOf(value, 42); - result_54 = _(list).indexOf(value); - result_54 = _(list).indexOf(value, true); - result_54 = _(list).indexOf(value, 42); - } - { - var result_55; - result_55 = _(array).chain().indexOf(value); - result_55 = _(array).chain().indexOf(value, true); - result_55 = _(array).chain().indexOf(value, 42); - result_55 = _(list).chain().indexOf(value); - result_55 = _(list).chain().indexOf(value, true); - result_55 = _(list).chain().indexOf(value, 42); - } -})(TestIndexOf || (TestIndexOf = {})); -// _.sortedIndexOf -var TestIndexOf; -(function (TestIndexOf) { - var array; - var list; - var value; - { - var result_56; - result_56 = _.sortedIndexOf(array, value); - result_56 = _.sortedIndexOf(list, value); - result_56 = _(array).sortedIndexOf(value); - result_56 = _(list).sortedIndexOf(value); - } - { - var result_57; - result_57 = _(array).chain().sortedIndexOf(value); - result_57 = _(list).chain().sortedIndexOf(value); - } -})(TestIndexOf || (TestIndexOf = {})); -//_.initial -var TestInitial; -(function (TestInitial) { - var array; - var list; - { - var result_58; - result_58 = _.initial(array); - result_58 = _.initial(list); - } - { - var result_59; - result_59 = _(array).initial(); - result_59 = _(list).initial(); - } - { - var result_60; - result_60 = _(array).chain().initial(); - result_60 = _(list).chain().initial(); - } -})(TestInitial || (TestInitial = {})); -// _.intersection -var TestIntersection; -(function (TestIntersection) { - var array; - var list; - { - var result_61; - result_61 = _.intersection(array, list); - result_61 = _.intersection(list, array, list); - } - { - var result_62; - result_62 = _(array).intersection(array); - result_62 = _(array).intersection(list, array); - result_62 = _(list).intersection(array); - result_62 = _(list).intersection(list, array); - } - { - var result_63; - result_63 = _(array).chain().intersection(array); - result_63 = _(array).chain().intersection(list, array); - result_63 = _(list).chain().intersection(array); - result_63 = _(list).chain().intersection(list, array); - } -})(TestIntersection || (TestIntersection = {})); -// _.last -var TestLast; -(function (TestLast) { - var array; - var list; - { - var result_64; - result_64 = _.last(array); - result_64 = _.last(list); - result_64 = _(array).last(); - result_64 = _(list).last(); - } - { - var result_65; - result_65 = _(array).chain().last(); - } - { - var result_66; - result_66 = _(list).chain().last(); - } -})(TestLast || (TestLast = {})); -// _.lastIndexOf -var TestLastIndexOf; -(function (TestLastIndexOf) { - var array; - var list; - var value; - { - var result_67; - result_67 = _.lastIndexOf(array, value); - result_67 = _.lastIndexOf(array, value, true); - result_67 = _.lastIndexOf(array, value, 42); - result_67 = _.lastIndexOf(list, value); - result_67 = _.lastIndexOf(list, value, true); - result_67 = _.lastIndexOf(list, value, 42); - result_67 = _(array).lastIndexOf(value); - result_67 = _(array).lastIndexOf(value, true); - result_67 = _(array).lastIndexOf(value, 42); - result_67 = _(list).lastIndexOf(value); - result_67 = _(list).lastIndexOf(value, true); - result_67 = _(list).lastIndexOf(value, 42); - } - { - var result_68; - result_68 = _(array).chain().lastIndexOf(value); - result_68 = _(array).chain().lastIndexOf(value, true); - result_68 = _(array).chain().lastIndexOf(value, 42); - result_68 = _(list).chain().lastIndexOf(value); - result_68 = _(list).chain().lastIndexOf(value, true); - result_68 = _(list).chain().lastIndexOf(value, 42); - } -})(TestLastIndexOf || (TestLastIndexOf = {})); -// _.pull -var TestPull; -(function (TestPull) { - var array; - var list; - var value; - { - var result_69; - result_69 = _.pull(array); - result_69 = _.pull(array, value); - result_69 = _.pull(array, value, value); - result_69 = _.pull(array, value, value, value); - } - { - var result_70; - result_70 = _.pull(list); - result_70 = _.pull(list, value); - result_70 = _.pull(list, value, value); - result_70 = _.pull(list, value, value, value); - } - { - var result_71; - result_71 = _(array).pull(); - result_71 = _(array).pull(value); - result_71 = _(array).pull(value, value); - result_71 = _(array).pull(value, value, value); - } - { - var result_72; - result_72 = _(list).pull(); - result_72 = _(list).pull(value); - result_72 = _(list).pull(value, value); - result_72 = _(list).pull(value, value, value); - } - { - var result_73; - result_73 = _(array).chain().pull(); - result_73 = _(array).chain().pull(value); - result_73 = _(array).chain().pull(value, value); - result_73 = _(array).chain().pull(value, value, value); - } - { - var result_74; - result_74 = _(list).chain().pull(); - result_74 = _(list).chain().pull(value); - result_74 = _(list).chain().pull(value, value); - result_74 = _(list).chain().pull(value, value, value); - } -})(TestPull || (TestPull = {})); -// _.pullAt -var TestPullAt; -(function (TestPullAt) { - var array; - var list; - { - var result_75; - result_75 = _.pullAt(array); - result_75 = _.pullAt(array, 1); - result_75 = _.pullAt(array, [2, 3], 1); - result_75 = _.pullAt(array, 4, [2, 3], 1); - result_75 = _.pullAt(list); - result_75 = _.pullAt(list, 1); - result_75 = _.pullAt(list, [2, 3], 1); - result_75 = _.pullAt(list, 4, [2, 3], 1); - } - { - var result_76; - result_76 = _(array).pullAt(); - result_76 = _(array).pullAt(1); - result_76 = _(array).pullAt([2, 3], 1); - result_76 = _(array).pullAt(4, [2, 3], 1); - result_76 = _(list).pullAt(); - result_76 = _(list).pullAt(1); - result_76 = _(list).pullAt([2, 3], 1); - result_76 = _(list).pullAt(4, [2, 3], 1); - } - { - var result_77; - result_77 = _(array).chain().pullAt(); - result_77 = _(array).chain().pullAt(1); - result_77 = _(array).chain().pullAt([2, 3], 1); - result_77 = _(array).chain().pullAt(4, [2, 3], 1); - result_77 = _(list).chain().pullAt(); - result_77 = _(list).chain().pullAt(1); - result_77 = _(list).chain().pullAt([2, 3], 1); - result_77 = _(list).chain().pullAt(4, [2, 3], 1); - } -})(TestPullAt || (TestPullAt = {})); -// _.remove -var TestRemove; -(function (TestRemove) { - var array; - var list; - var predicateFn; - { - var result_78; - result_78 = _.remove(array); - result_78 = _.remove(array, predicateFn); - result_78 = _.remove(array, predicateFn, any); - result_78 = _.remove(array, ''); - result_78 = _.remove(array, '', any); - result_78 = _.remove(array, { a: 42 }); - result_78 = _.remove(list); - result_78 = _.remove(list, predicateFn); - result_78 = _.remove(list, predicateFn, any); - result_78 = _.remove(list, ''); - result_78 = _.remove(list, '', any); - result_78 = _.remove(list, { a: 42 }); - } - { - var result_79; - result_79 = _(array).remove(); - result_79 = _(array).remove(predicateFn); - result_79 = _(array).remove(predicateFn, any); - result_79 = _(array).remove(''); - result_79 = _(array).remove('', any); - result_79 = _(array).remove({ a: 42 }); - result_79 = _(list).remove(); - result_79 = _(list).remove(predicateFn); - result_79 = _(list).remove(predicateFn, any); - result_79 = _(list).remove(''); - result_79 = _(list).remove('', any); - result_79 = _(list).remove({ a: 42 }); - } - { - var result_80; - result_80 = _(array).chain().remove(); - result_80 = _(array).chain().remove(predicateFn); - result_80 = _(array).chain().remove(predicateFn, any); - result_80 = _(array).chain().remove(''); - result_80 = _(array).chain().remove('', any); - result_80 = _(array).chain().remove({ a: 42 }); - result_80 = _(list).chain().remove(); - result_80 = _(list).chain().remove(predicateFn); - result_80 = _(list).chain().remove(predicateFn, any); - result_80 = _(list).chain().remove(''); - result_80 = _(list).chain().remove('', any); - result_80 = _(list).chain().remove({ a: 42 }); - } -})(TestRemove || (TestRemove = {})); -// _.tail -var TestTail; -(function (TestTail) { - var array; - var list; - { - var result_81; - result_81 = _.tail(array); - result_81 = _.tail(list); - } - { - var result_82; - result_82 = _(array).tail(); - result_82 = _(list).tail(); - } - { - var result_83; - result_83 = _(array).chain().tail(); - result_83 = _(list).chain().tail(); - } -})(TestTail || (TestTail = {})); -// _.slice -var TestSlice; -(function (TestSlice) { - var array; - { - var result_84; - result_84 = _.slice(array); - result_84 = _.slice(array, 42); - result_84 = _.slice(array, 42, 42); - } - { - var result_85; - result_85 = _(array).slice(); - result_85 = _(array).slice(42); - result_85 = _(array).slice(42, 42); - } - { - var result_86; - result_86 = _(array).chain().slice(); - result_86 = _(array).chain().slice(42); - result_86 = _(array).chain().slice(42, 42); - } -})(TestSlice || (TestSlice = {})); -// _.sortedIndex -var TestSortedIndex; -(function (TestSortedIndex) { - var array; - var list; - var value; - var stringIterator; - var arrayIterator; - var listIterator; - { - var result_87; - result_87 = _.sortedIndex('', ''); - result_87 = _.sortedIndex(array, value); - result_87 = _.sortedIndex(list, value); - result_87 = _('').sortedIndex(''); - result_87 = _(array).sortedIndex(value); - result_87 = _(list).sortedIndex(value); - } - { - var result_88; - result_88 = _('').chain().sortedIndex(''); - result_88 = _(array).chain().sortedIndex(value); - result_88 = _(list).chain().sortedIndex(value); - } -})(TestSortedIndex || (TestSortedIndex = {})); -// _.sortedIndexBy -var TestSortedIndexBy; -(function (TestSortedIndexBy) { - var array; - var list; - var value; - var stringIterator; - var arrayIterator; - var listIterator; - { - var result_89; - result_89 = _.sortedIndexBy('', '', stringIterator); - result_89 = _.sortedIndexBy('', '', stringIterator); - result_89 = _.sortedIndexBy(array, value, arrayIterator); - result_89 = _.sortedIndexBy(array, value, ''); - result_89 = _.sortedIndexBy(array, value, { a: 42 }); - result_89 = _.sortedIndexBy(array, value, arrayIterator); - result_89 = _.sortedIndexBy(array, value, { a: 42 }); - result_89 = _.sortedIndexBy(list, value, listIterator); - result_89 = _.sortedIndexBy(list, value, ''); - result_89 = _.sortedIndexBy(list, value, { a: 42 }); - result_89 = _.sortedIndexBy(list, value, listIterator); - result_89 = _.sortedIndexBy(list, value, { a: 42 }); - result_89 = _('').sortedIndexBy('', stringIterator); - result_89 = _(array).sortedIndexBy(value, arrayIterator); - result_89 = _(array).sortedIndexBy(value, ''); - result_89 = _(array).sortedIndexBy(value, { a: 42 }); - result_89 = _(list).sortedIndexBy(value, listIterator); - result_89 = _(list).sortedIndexBy(value, ''); - result_89 = _(list).sortedIndexBy(value, { a: 42 }); - result_89 = _(list).sortedIndexBy(value, listIterator); - result_89 = _(list).sortedIndexBy(value, { a: 42 }); - } - { - var result_90; - result_90 = _('').chain().sortedIndexBy('', stringIterator); - result_90 = _(array).chain().sortedIndexBy(value, arrayIterator); - result_90 = _(array).chain().sortedIndexBy(value, ''); - result_90 = _(array).chain().sortedIndexBy(value, { a: 42 }); - result_90 = _(list).chain().sortedIndexBy(value, listIterator); - result_90 = _(list).chain().sortedIndexBy(value, ''); - result_90 = _(list).chain().sortedIndexBy(value, { a: 42 }); - result_90 = _(list).chain().sortedIndexBy(value, listIterator); - result_90 = _(list).chain().sortedIndexBy(value, { a: 42 }); - } -})(TestSortedIndexBy || (TestSortedIndexBy = {})); -// _.sortedLastIndex -var TestSortedLastIndex; -(function (TestSortedLastIndex) { - var array; - var list; - var value; - var stringIterator; - var arrayIterator; - var listIterator; - { - var result_91; - result_91 = _.sortedLastIndex('', ''); - result_91 = _.sortedLastIndex(array, value); - result_91 = _.sortedLastIndex(list, value); - result_91 = _('').sortedLastIndex(''); - result_91 = _(array).sortedLastIndex(value); - result_91 = _(list).sortedLastIndex(value); - } - { - var result_92; - result_92 = _('').chain().sortedLastIndex(''); - result_92 = _(array).chain().sortedLastIndex(value); - result_92 = _(list).chain().sortedLastIndex(value); - } -})(TestSortedLastIndex || (TestSortedLastIndex = {})); -// _.sortedLastIndexBy -var TestSortedLastIndexBy; -(function (TestSortedLastIndexBy) { - var array; - var list; - var value; - var stringIterator; - var arrayIterator; - var listIterator; - { - var result_93; - result_93 = _.sortedLastIndexBy('', '', stringIterator); - result_93 = _.sortedLastIndexBy('', '', stringIterator); - result_93 = _.sortedLastIndexBy(array, value, arrayIterator); - result_93 = _.sortedLastIndexBy(array, value, ''); - result_93 = _.sortedLastIndexBy(array, value, { a: 42 }); - result_93 = _.sortedLastIndexBy(array, value, arrayIterator); - result_93 = _.sortedLastIndexBy(array, value, { a: 42 }); - result_93 = _.sortedLastIndexBy(list, value, listIterator); - result_93 = _.sortedLastIndexBy(list, value, ''); - result_93 = _.sortedLastIndexBy(list, value, { a: 42 }); - result_93 = _.sortedLastIndexBy(list, value, listIterator); - result_93 = _.sortedLastIndexBy(list, value, { a: 42 }); - result_93 = _('').sortedLastIndexBy('', stringIterator); - result_93 = _(array).sortedLastIndexBy(value, arrayIterator); - result_93 = _(array).sortedLastIndexBy(value, ''); - result_93 = _(array).sortedLastIndexBy(value, { a: 42 }); - result_93 = _(list).sortedLastIndexBy(value, listIterator); - result_93 = _(list).sortedLastIndexBy(value, ''); - result_93 = _(list).sortedLastIndexBy(value, { a: 42 }); - result_93 = _(list).sortedLastIndexBy(value, listIterator); - result_93 = _(list).sortedLastIndexBy(value, { a: 42 }); - } - { - var result_94; - result_94 = _('').chain().sortedLastIndexBy('', stringIterator); - result_94 = _(array).chain().sortedLastIndexBy(value, arrayIterator); - result_94 = _(array).chain().sortedLastIndexBy(value, ''); - result_94 = _(array).chain().sortedLastIndexBy(value, { a: 42 }); - result_94 = _(list).chain().sortedLastIndexBy(value, listIterator); - result_94 = _(list).chain().sortedLastIndexBy(value, ''); - result_94 = _(list).chain().sortedLastIndexBy(value, { a: 42 }); - result_94 = _(list).chain().sortedLastIndexBy(value, listIterator); - result_94 = _(list).chain().sortedLastIndexBy(value, { a: 42 }); - } -})(TestSortedLastIndexBy || (TestSortedLastIndexBy = {})); -// _.tail -var TestTail; -(function (TestTail) { - var array; - var list; - { - var result_95; - result_95 = _.tail(array); - result_95 = _.tail(list); - } - { - var result_96; - result_96 = _(array).tail(); - result_96 = _(list).tail(); - } - { - var result_97; - result_97 = _(array).chain().tail(); - result_97 = _(list).chain().tail(); - } -})(TestTail || (TestTail = {})); -// _.take -var TestTake; -(function (TestTake) { - var array; - var list; - { - var result_98; - result_98 = _.take(array); - result_98 = _.take(array, 42); - result_98 = _.take(list); - result_98 = _.take(list, 42); - } - { - var result_99; - result_99 = _(array).take(); - result_99 = _(array).take(42); - result_99 = _(list).take(); - result_99 = _(list).take(42); - } - { - var result_100; - result_100 = _(array).chain().take(); - result_100 = _(array).chain().take(42); - result_100 = _(list).chain().take(); - result_100 = _(list).chain().take(42); - } -})(TestTake || (TestTake = {})); -// _.takeRight -var TestTakeRight; -(function (TestTakeRight) { - var array; - var list; - { - var result_101; - result_101 = _.takeRight(array); - result_101 = _.takeRight(array, 42); - result_101 = _.takeRight(list); - result_101 = _.takeRight(list, 42); - } - { - var result_102; - result_102 = _(array).takeRight(); - result_102 = _(array).takeRight(42); - result_102 = _(list).takeRight(); - result_102 = _(list).takeRight(42); - } - { - var result_103; - result_103 = _(array).chain().takeRight(); - result_103 = _(array).chain().takeRight(42); - result_103 = _(list).chain().takeRight(); - result_103 = _(list).chain().takeRight(42); - } -})(TestTakeRight || (TestTakeRight = {})); -// _.takeRightWhile -var TestTakeRightWhile; -(function (TestTakeRightWhile) { - var array; - var list; - var predicateFn; - { - var result_104; - result_104 = _.takeRightWhile(array); - result_104 = _.takeRightWhile(array, predicateFn); - result_104 = _.takeRightWhile(array, predicateFn, any); - result_104 = _.takeRightWhile(array, ''); - result_104 = _.takeRightWhile(array, '', any); - result_104 = _.takeRightWhile(array, { a: 42 }); - result_104 = _.takeRightWhile(list); - result_104 = _.takeRightWhile(list, predicateFn); - result_104 = _.takeRightWhile(list, predicateFn, any); - result_104 = _.takeRightWhile(list, ''); - result_104 = _.takeRightWhile(list, '', any); - result_104 = _.takeRightWhile(list, { a: 42 }); - } - { - var result_105; - result_105 = _(array).takeRightWhile(); - result_105 = _(array).takeRightWhile(predicateFn); - result_105 = _(array).takeRightWhile(predicateFn, any); - result_105 = _(array).takeRightWhile(''); - result_105 = _(array).takeRightWhile('', any); - result_105 = _(array).takeRightWhile({ a: 42 }); - result_105 = _(list).takeRightWhile(); - result_105 = _(list).takeRightWhile(predicateFn); - result_105 = _(list).takeRightWhile(predicateFn, any); - result_105 = _(list).takeRightWhile(''); - result_105 = _(list).takeRightWhile('', any); - result_105 = _(list).takeRightWhile({ a: 42 }); - } - { - var result_106; - result_106 = _(array).chain().takeRightWhile(); - result_106 = _(array).chain().takeRightWhile(predicateFn); - result_106 = _(array).chain().takeRightWhile(predicateFn, any); - result_106 = _(array).chain().takeRightWhile(''); - result_106 = _(array).chain().takeRightWhile('', any); - result_106 = _(array).chain().takeRightWhile({ a: 42 }); - result_106 = _(list).chain().takeRightWhile(); - result_106 = _(list).chain().takeRightWhile(predicateFn); - result_106 = _(list).chain().takeRightWhile(predicateFn, any); - result_106 = _(list).chain().takeRightWhile(''); - result_106 = _(list).chain().takeRightWhile('', any); - result_106 = _(list).chain().takeRightWhile({ a: 42 }); - } -})(TestTakeRightWhile || (TestTakeRightWhile = {})); -// _.takeWhile -var TestTakeWhile; -(function (TestTakeWhile) { - var array; - var list; - var predicateFn; - { - var result_107; - result_107 = _.takeWhile(array); - result_107 = _.takeWhile(array, predicateFn); - result_107 = _.takeWhile(array, predicateFn, any); - result_107 = _.takeWhile(array, ''); - result_107 = _.takeWhile(array, '', any); - result_107 = _.takeWhile(array, { a: 42 }); - result_107 = _.takeWhile(list); - result_107 = _.takeWhile(list, predicateFn); - result_107 = _.takeWhile(list, predicateFn, any); - result_107 = _.takeWhile(list, ''); - result_107 = _.takeWhile(list, '', any); - result_107 = _.takeWhile(list, { a: 42 }); - } - { - var result_108; - result_108 = _(array).takeWhile(); - result_108 = _(array).takeWhile(predicateFn); - result_108 = _(array).takeWhile(predicateFn, any); - result_108 = _(array).takeWhile(''); - result_108 = _(array).takeWhile('', any); - result_108 = _(array).takeWhile({ a: 42 }); - result_108 = _(list).takeWhile(); - result_108 = _(list).takeWhile(predicateFn); - result_108 = _(list).takeWhile(predicateFn, any); - result_108 = _(list).takeWhile(''); - result_108 = _(list).takeWhile('', any); - result_108 = _(list).takeWhile({ a: 42 }); - } - { - var result_109; - result_109 = _(array).chain().takeWhile(); - result_109 = _(array).chain().takeWhile(predicateFn); - result_109 = _(array).chain().takeWhile(predicateFn, any); - result_109 = _(array).chain().takeWhile(''); - result_109 = _(array).chain().takeWhile('', any); - result_109 = _(array).chain().takeWhile({ a: 42 }); - result_109 = _(list).chain().takeWhile(); - result_109 = _(list).chain().takeWhile(predicateFn); - result_109 = _(list).chain().takeWhile(predicateFn, any); - result_109 = _(list).chain().takeWhile(''); - result_109 = _(list).chain().takeWhile('', any); - result_109 = _(list).chain().takeWhile({ a: 42 }); - } -})(TestTakeWhile || (TestTakeWhile = {})); -// _.union -var TestUnion; -(function (TestUnion) { - var array; - var list; - { - var result_110; - result_110 = _.union(); - result_110 = _.union(array); - result_110 = _.union(array, list); - result_110 = _.union(array, list, array); - result_110 = _.union(list); - result_110 = _.union(list, array); - result_110 = _.union(list, array, list); - } - { - var result_111; - result_111 = _(array).union(); - result_111 = _(array).union(list); - result_111 = _(array).union(list, array); - result_111 = _(array).union(); - result_111 = _(array).union(list); - result_111 = _(array).union(list, array); - result_111 = _(list).union(); - result_111 = _(list).union(array); - result_111 = _(list).union(array, list); - } - { - var result_112; - result_112 = _(array).chain().union(); - result_112 = _(array).chain().union(list); - result_112 = _(array).chain().union(list, array); - result_112 = _(array).chain().union(); - result_112 = _(array).chain().union(list); - result_112 = _(array).chain().union(list, array); - result_112 = _(list).chain().union(); - result_112 = _(list).chain().union(array); - result_112 = _(list).chain().union(array, list); - } -})(TestUnion || (TestUnion = {})); -// _.uniq -var TestUniq; -(function (TestUniq) { - var array; - var list; - var stringIterator; - var listIterator; - { - var result_113; - result_113 = _.uniq('abc'); - } - { - var result_114; - result_114 = _.uniq(array); - result_114 = _.uniq(list); - } - { - var result_115; - result_115 = _('abc').uniq(); - } - { - var result_116; - result_116 = _(array).uniq(); - result_116 = _(list).uniq(); - } - { - var result_117; - result_117 = _('abc').chain().uniq(); - } - { - var result_118; - result_118 = _(array).chain().uniq(); - result_118 = _(list).chain().uniq(); - } -})(TestUniq || (TestUniq = {})); -// _.uniqBy -var TestUniqBy; -(function (TestUniqBy) { - var array; - var list; - var stringIterator; - var listIterator; - { - var result_119; - result_119 = _.uniqBy('abc', stringIterator); - result_119 = _.uniqBy('abc', stringIterator); - } - { - var result_120; - result_120 = _.uniqBy(array, listIterator); - result_120 = _.uniqBy(array, listIterator); - result_120 = _.uniqBy(array, 'a'); - result_120 = _.uniqBy(array, { a: 42 }); - result_120 = _.uniqBy(array, { a: 42 }); - result_120 = _.uniqBy(list, listIterator); - result_120 = _.uniqBy(list, listIterator); - result_120 = _.uniqBy(list, 'a'); - result_120 = _.uniqBy(list, { a: 42 }); - result_120 = _.uniqBy(list, { a: 42 }); - } - { - var result_121; - result_121 = _('abc').uniqBy(stringIterator); - } - { - var result_122; - result_122 = _(array).uniqBy(listIterator); - result_122 = _(array).uniqBy('a'); - result_122 = _(array).uniqBy({ a: 42 }); - result_122 = _(list).uniqBy(listIterator); - result_122 = _(list).uniqBy(listIterator); - result_122 = _(list).uniqBy('a'); - result_122 = _(list).uniqBy({ a: 42 }); - result_122 = _(list).uniqBy({ a: 42 }); - } - { - var result_123; - result_123 = _('abc').chain().uniqBy(stringIterator); - } - { - var result_124; - result_124 = _(array).chain().uniqBy(listIterator); - result_124 = _(array).chain().uniqBy('a'); - result_124 = _(array).chain().uniqBy({ a: 42 }); - result_124 = _(list).chain().uniqBy(listIterator); - result_124 = _(list).chain().uniqBy(listIterator); - result_124 = _(list).chain().uniqBy('a'); - result_124 = _(list).chain().uniqBy({ a: 42 }); - result_124 = _(list).chain().uniqBy({ a: 42 }); - } -})(TestUniqBy || (TestUniqBy = {})); -// _.sortedUniq -var TestSortedUniq; -(function (TestSortedUniq) { - var array; - var list; - var stringIterator; - var listIterator; - { - var result_125; - result_125 = _.sortedUniq('abc'); - } - { - var result_126; - result_126 = _.sortedUniq(array); - result_126 = _.sortedUniq(list); - } - { - var result_127; - result_127 = _('abc').sortedUniq(); - } - { - var result_128; - result_128 = _(array).sortedUniq(); - result_128 = _(list).sortedUniq(); - } - { - var result_129; - result_129 = _('abc').chain().sortedUniq(); - } - { - var result_130; - result_130 = _(array).chain().sortedUniq(); - result_130 = _(list).chain().sortedUniq(); - } -})(TestSortedUniq || (TestSortedUniq = {})); -// _.sortedUniqBy -var TestSortedUniqBy; -(function (TestSortedUniqBy) { - var array; - var list; - var stringIterator; - var listIterator; - { - var result_131; - result_131 = _.sortedUniqBy('abc', stringIterator); - result_131 = _.sortedUniqBy('abc', stringIterator); - } - { - var result_132; - result_132 = _.sortedUniqBy(array, listIterator); - result_132 = _.sortedUniqBy(array, listIterator); - result_132 = _.sortedUniqBy(array, 'a'); - result_132 = _.sortedUniqBy(array, { a: 42 }); - result_132 = _.sortedUniqBy(array, { a: 42 }); - result_132 = _.sortedUniqBy(list, listIterator); - result_132 = _.sortedUniqBy(list, listIterator); - result_132 = _.sortedUniqBy(list, 'a'); - result_132 = _.sortedUniqBy(list, { a: 42 }); - result_132 = _.sortedUniqBy(list, { a: 42 }); - } - { - var result_133; - result_133 = _('abc').sortedUniqBy(stringIterator); - } - { - var result_134; - result_134 = _(array).sortedUniqBy(listIterator); - result_134 = _(array).sortedUniqBy('a'); - result_134 = _(array).sortedUniqBy({ a: 42 }); - result_134 = _(list).sortedUniqBy(listIterator); - result_134 = _(list).sortedUniqBy(listIterator); - result_134 = _(list).sortedUniqBy('a'); - result_134 = _(list).sortedUniqBy({ a: 42 }); - result_134 = _(list).sortedUniqBy({ a: 42 }); - } - { - var result_135; - result_135 = _('abc').chain().sortedUniqBy(stringIterator); - } - { - var result_136; - result_136 = _(array).chain().sortedUniqBy(listIterator); - result_136 = _(array).chain().sortedUniqBy('a'); - result_136 = _(array).chain().sortedUniqBy({ a: 42 }); - result_136 = _(list).chain().sortedUniqBy(listIterator); - result_136 = _(list).chain().sortedUniqBy(listIterator); - result_136 = _(list).chain().sortedUniqBy('a'); - result_136 = _(list).chain().sortedUniqBy({ a: 42 }); - result_136 = _(list).chain().sortedUniqBy({ a: 42 }); - } -})(TestSortedUniqBy || (TestSortedUniqBy = {})); -// _.upzip -var TestUnzip; -(function (TestUnzip) { - var array = [['a', 'b'], [1, 2], [true, false]]; - var list = { - 0: { 0: 'a', 1: 'b', length: 2 }, - 1: { 0: 1, 1: 2, length: 2 }, - 2: { 0: true, 1: false, length: 2 }, - length: 3 - }; - { - var result_137; - result_137 = _.unzip(array); - result_137 = _.unzip(list); - } - { - var result_138; - result_138 = _(array).unzip(); - result_138 = _(list).unzip(); - } - { - var result_139; - result_139 = _(array).chain().unzip(); - result_139 = _(list).chain().unzip(); - } -})(TestUnzip || (TestUnzip = {})); -// _.unzipWith -{ - var testUnzipWithArray; - var testUnzipWithList; - var testUnzipWithIterator; - var result_140; - result_140 = _.unzipWith(testUnzipWithArray); - result_140 = _.unzipWith(testUnzipWithArray, testUnzipWithIterator); - result_140 = _.unzipWith(testUnzipWithArray, testUnzipWithIterator, any); - result_140 = _.unzipWith(testUnzipWithList); - result_140 = _.unzipWith(testUnzipWithList, testUnzipWithIterator); - result_140 = _.unzipWith(testUnzipWithList, testUnzipWithIterator, any); - result_140 = _(testUnzipWithArray).unzipWith(testUnzipWithIterator).value(); - result_140 = _(testUnzipWithArray).unzipWith(testUnzipWithIterator, any).value(); - result_140 = _(testUnzipWithList).unzipWith(testUnzipWithIterator).value(); - result_140 = _(testUnzipWithList).unzipWith(testUnzipWithIterator, any).value(); -} -// _.without -var TestWithout; -(function (TestWithout) { - var array; - var list; - { - var result_141; - result_141 = _.without(array); - result_141 = _.without(array, 1); - result_141 = _.without(array, 1, 2); - result_141 = _.without(array, 1, 2, 3); - result_141 = _.without(list); - result_141 = _.without(list, 1); - result_141 = _.without(list, 1, 2); - result_141 = _.without(list, 1, 2, 3); - } - { - var result_142; - result_142 = _(array).without(); - result_142 = _(array).without(1); - result_142 = _(array).without(1, 2); - result_142 = _(array).without(1, 2, 3); - result_142 = _(list).without(); - result_142 = _(list).without(1); - result_142 = _(list).without(1, 2); - result_142 = _(list).without(1, 2, 3); - } - { - var result_143; - result_143 = _(array).chain().without(); - result_143 = _(array).chain().without(1); - result_143 = _(array).chain().without(1, 2); - result_143 = _(array).chain().without(1, 2, 3); - result_143 = _(list).chain().without(); - result_143 = _(list).chain().without(1); - result_143 = _(list).chain().without(1, 2); - result_143 = _(list).chain().without(1, 2, 3); - } -})(TestWithout || (TestWithout = {})); -// _.xor -var TestXor; -(function (TestXor) { - var array; - var list; - { - var result_144; - result_144 = _.xor(); - result_144 = _.xor(array); - result_144 = _.xor(array, list); - result_144 = _.xor(array, list, array); - result_144 = _.xor(list); - result_144 = _.xor(list, array); - result_144 = _.xor(list, array, list); - } - { - var result_145; - result_145 = _(array).xor(); - result_145 = _(array).xor(list); - result_145 = _(array).xor(list, array); - result_145 = _(list).xor(); - result_145 = _(list).xor(array); - result_145 = _(list).xor(array, list); - } - { - var result_146; - result_146 = _(array).chain().xor(); - result_146 = _(array).chain().xor(list); - result_146 = _(array).chain().xor(list, array); - result_146 = _(list).chain().xor(); - result_146 = _(list).chain().xor(array); - result_146 = _(list).chain().xor(array, list); - } -})(TestXor || (TestXor = {})); -// _.zip -var TestZip; -(function (TestZip) { - var array; - var list; - { - var result_147; - result_147 = _.zip(array); - result_147 = _.zip(array, list); - result_147 = _.zip(array, list, array); - result_147 = _.zip(list); - result_147 = _.zip(list, array); - result_147 = _.zip(list, array, list); - } - { - var result_148; - result_148 = _(array).zip(list); - result_148 = _(array).zip(list, array); - result_148 = _(list).zip(array); - result_148 = _(list).zip(array, list); - } - { - var result_149; - result_149 = _(array).chain().zip(list); - result_149 = _(array).chain().zip(list, array); - result_149 = _(list).chain().zip(array); - result_149 = _(list).chain().zip(array, list); - } -})(TestZip || (TestZip = {})); -// _.zipObject -var TestZipObject; -(function (TestZipObject) { - var arrayOfKeys; - var arrayOfValues; - var arrayOfKeyValuePairs; - var listOfKeys; - var listOfValues; - var listOfKeyValuePairs; - { - var result_150; - result_150 = _.zipObject(arrayOfKeys); - result_150 = _.zipObject(listOfKeys); - } - { - var result_151; - result_151 = _.zipObject(arrayOfKeys, arrayOfValues); - result_151 = _.zipObject(arrayOfKeys, listOfValues); - result_151 = _.zipObject(listOfKeys, listOfValues); - result_151 = _.zipObject(listOfKeys, arrayOfValues); - result_151 = _.zipObject(arrayOfKeys, arrayOfValues); - result_151 = _.zipObject(arrayOfKeys, listOfValues); - result_151 = _.zipObject(listOfKeys, listOfValues); - result_151 = _.zipObject(listOfKeys, arrayOfValues); - result_151 = _.zipObject(arrayOfKeyValuePairs); - result_151 = _.zipObject(listOfKeyValuePairs); - } - { - var result_152; - result_152 = _.zipObject(arrayOfKeys); - result_152 = _.zipObject(arrayOfKeys, arrayOfValues); - result_152 = _.zipObject(arrayOfKeys, listOfValues); - result_152 = _.zipObject(listOfKeys); - result_152 = _.zipObject(listOfKeys, listOfValues); - result_152 = _.zipObject(listOfKeys, arrayOfValues); - result_152 = _.zipObject(arrayOfKeyValuePairs); - result_152 = _.zipObject(listOfKeyValuePairs); - } - { - var result_153; - result_153 = _(arrayOfKeys).zipObject(); - result_153 = _(listOfKeys).zipObject(); - } - { - var result_154; - result_154 = _(arrayOfKeys).zipObject(arrayOfValues); - result_154 = _(arrayOfKeys).zipObject(listOfValues); - result_154 = _(listOfKeys).zipObject(listOfValues); - result_154 = _(listOfKeys).zipObject(arrayOfValues); - result_154 = _(arrayOfKeys).zipObject(arrayOfValues); - result_154 = _(arrayOfKeys).zipObject(listOfValues); - result_154 = _(listOfKeys).zipObject(listOfValues); - result_154 = _(listOfKeys).zipObject(arrayOfValues); - result_154 = _(listOfKeys).zipObject(arrayOfKeyValuePairs); - result_154 = _(listOfKeys).zipObject(listOfKeyValuePairs); - } - { - var result_155; - result_155 = _(arrayOfKeys).zipObject(); - result_155 = _(arrayOfKeys).zipObject(arrayOfValues); - result_155 = _(arrayOfKeys).zipObject(listOfValues); - result_155 = _(listOfKeys).zipObject(); - result_155 = _(listOfKeys).zipObject(listOfValues); - result_155 = _(listOfKeys).zipObject(arrayOfValues); - result_155 = _(listOfKeys).zipObject(arrayOfKeyValuePairs); - result_155 = _(listOfKeys).zipObject(listOfKeyValuePairs); - } - { - var result_156; - result_156 = _(arrayOfKeys).chain().zipObject(); - result_156 = _(listOfKeys).chain().zipObject(); - } - { - var result_157; - result_157 = _(arrayOfKeys).chain().zipObject(arrayOfValues); - result_157 = _(arrayOfKeys).chain().zipObject(listOfValues); - result_157 = _(listOfKeys).chain().zipObject(listOfValues); - result_157 = _(listOfKeys).chain().zipObject(arrayOfValues); - result_157 = _(arrayOfKeys).chain().zipObject(arrayOfValues); - result_157 = _(arrayOfKeys).chain().zipObject(listOfValues); - result_157 = _(listOfKeys).chain().zipObject(listOfValues); - result_157 = _(listOfKeys).chain().zipObject(arrayOfValues); - result_157 = _(listOfKeys).chain().zipObject(arrayOfKeyValuePairs); - result_157 = _(listOfKeys).chain().zipObject(listOfKeyValuePairs); - } - { - var result_158; - result_158 = _(arrayOfKeys).chain().zipObject(); - result_158 = _(arrayOfKeys).chain().zipObject(arrayOfValues); - result_158 = _(arrayOfKeys).chain().zipObject(listOfValues); - result_158 = _(listOfKeys).chain().zipObject(); - result_158 = _(listOfKeys).chain().zipObject(listOfValues); - result_158 = _(listOfKeys).chain().zipObject(arrayOfValues); - result_158 = _(listOfKeys).chain().zipObject(arrayOfKeyValuePairs); - result_158 = _(listOfKeys).chain().zipObject(listOfKeyValuePairs); - } -})(TestZipObject || (TestZipObject = {})); -var testZipWithFn; -result = _.zipWith([1, 2]); -result = _.zipWith([1, 2], testZipWithFn); -result = _.zipWith([1, 2], testZipWithFn, any); -result = _.zipWith([1, 2], [1, 2], testZipWithFn, any); -result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn, any); -result = _([1, 2]).zipWith().value(); -result = _([1, 2]).zipWith(testZipWithFn).value(); -result = _([1, 2]).zipWith(testZipWithFn, any).value(); -result = _([1, 2]).zipWith([1, 2], testZipWithFn, any).value(); -result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn, any).value(); -/********* - * Chain * - *********/ -// _.chain -var TestChain; -(function (TestChain) { - { - var result_159; - result_159 = _.chain(''); - result_159 = _('').chain(); - result_159 = _.chain('').chain(); - result_159 = _('').chain().chain(); - } - { - var result_160; - result_160 = _.chain(42); - result_160 = _(42).chain(); - } - { - var result_161; - result_161 = _.chain(true); - result_161 = _(true).chain(); - } - { - var result_162; - result_162 = _.chain(['']); - result_162 = _(['']).chain(); - } - { - var result_163; - result_163 = _.chain({ a: '' }); - result_163 = _({ a: '' }).chain(); - } -})(TestChain || (TestChain = {})); -// _.tap -var TestTap; -(function (TestTap) { - { - var interceptor; - var result_164; - _.tap('', interceptor); - _.tap('', interceptor, any); - } - { - var interceptor; - var result_165; - _.tap([''], interceptor); - _.tap([''], interceptor, any); - } - { - var interceptor; - var result_166; - _.tap({ a: '' }, interceptor); - _.tap({ a: '' }, interceptor, any); - } - { - var interceptor; - var result_167; - _.chain('').tap(interceptor, any); - _.chain('').tap(interceptor, any); - _('').tap(interceptor); - _('').tap(interceptor, any); - } - { - var interceptor; - var result_168; - _.chain(['']).tap(interceptor); - _.chain(['']).tap(interceptor, any); - _(['']).tap(interceptor); - _(['']).tap(interceptor, any); - } - { - var interceptor; - var result_169; - _.chain({ a: '' }).tap(interceptor); - _.chain({ a: '' }).tap(interceptor, any); - _({ a: '' }).tap(interceptor); - _({ a: '' }).tap(interceptor, any); - } - { - var interceptor; - var result_170; - _.chain('').tap(interceptor, any); - _.chain('').tap(interceptor, any); - _('').chain().tap(interceptor); - _('').chain().tap(interceptor, any); - } - { - var interceptor; - var result_171; - _.chain(['']).tap(interceptor); - _.chain(['']).tap(interceptor, any); - _(['']).chain().tap(interceptor); - _(['']).chain().tap(interceptor, any); - } - { - var interceptor; - var result_172; - _.chain({ a: '' }).tap(interceptor); - _.chain({ a: '' }).tap(interceptor, any); - _({ a: '' }).chain().tap(interceptor); - _({ a: '' }).chain().tap(interceptor, any); - } -})(TestTap || (TestTap = {})); -// _.thru -var TestThru; -(function (TestThru) { - { - var interceptor; - var result_173; - result_173 = _.thru(1, interceptor); - result_173 = _.thru(1, interceptor, any); - } - { - var interceptor; - var result_174; - result_174 = _(1).thru(interceptor); - result_174 = _(1).thru(interceptor, any); - } - { - var interceptor; - var result_175; - result_175 = _('').thru(interceptor); - result_175 = _('').thru(interceptor, any); - } - { - var interceptor; - var result_176; - result_176 = _(true).thru(interceptor); - result_176 = _(true).thru(interceptor, any); - } - { - var interceptor; - var result_177; - result_177 = _({ a: '' }).thru(interceptor); - result_177 = _({ a: '' }).thru(interceptor, any); - } - { - var interceptor; - var result_178; - result_178 = _([1, 2, 3]).thru(interceptor); - result_178 = _([1, 2, 3]).thru(interceptor, any); - } - { - var interceptor; - var result_179; - result_179 = _(1).chain().thru(interceptor); - result_179 = _(1).chain().thru(interceptor, any); - } - { - var interceptor; - var result_180; - result_180 = _('').chain().thru(interceptor); - result_180 = _('').chain().thru(interceptor, any); - } - { - var interceptor; - var result_181; - result_181 = _(true).chain().thru(interceptor); - result_181 = _(true).chain().thru(interceptor, any); - } - { - var interceptor; - var result_182; - result_182 = _({ a: '' }).chain().thru(interceptor); - result_182 = _({ a: '' }).chain().thru(interceptor, any); - } - { - var interceptor; - var result_183; - result_183 = _([1, 2, 3]).chain().thru(interceptor); - result_183 = _([1, 2, 3]).chain().thru(interceptor, any); - } -})(TestThru || (TestThru = {})); -// _.prototype.commit -var TestCommit; -(function (TestCommit) { - { - var result_184; - result_184 = _(42).commit(); - } - { - var result_185; - result_185 = _([]).commit(); - } - { - var result_186; - result_186 = _({}).commit(); - } - { - var result_187; - result_187 = _(42).chain().commit(); - } - { - var result_188; - result_188 = _([]).chain().commit(); - } - { - var result_189; - result_189 = _({}).chain().commit(); - } -})(TestCommit || (TestCommit = {})); -// _.prototype.concat -var TestConcat; -(function (TestConcat) { - { - var result_190; - result_190 = _(1).concat(2); - result_190 = _(1).concat(2, 3); - result_190 = _(1).concat(2, 3, 4); - result_190 = _(1).concat(2); - result_190 = _(1).concat(2, 3); - result_190 = _(1).concat(2, 3, 4); - } - { - var result_191; - result_191 = _(['']).concat(['']); - result_191 = _(['']).concat([''], ['']); - result_191 = _(['']).concat([''], [''], ['']); - result_191 = _(['']).concat(['']); - result_191 = _(['']).concat([''], ['']); - result_191 = _(['']).concat([''], [''], ['']); - } - { - var result_192; - result_192 = _({ a: '' }).concat({ a: '' }); - result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }); - result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }, { a: '' }); - result_192 = _({ a: '' }).concat({ a: '' }); - result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }); - result_192 = _({ a: '' }).concat({ a: '' }, { a: '' }, { a: '' }); - } - { - var result_193; - result_193 = _(1).chain().concat(2); - result_193 = _(1).chain().concat(2, 3); - result_193 = _(1).chain().concat(2, 3, 4); - result_193 = _(1).chain().concat(2); - result_193 = _(1).chain().concat(2, 3); - result_193 = _(1).chain().concat(2, 3, 4); - } - { - var result_194; - result_194 = _(['']).chain().concat(['']); - result_194 = _(['']).chain().concat([''], ['']); - result_194 = _(['']).chain().concat([''], [''], ['']); - result_194 = _(['']).chain().concat(['']); - result_194 = _(['']).chain().concat([''], ['']); - result_194 = _(['']).chain().concat([''], [''], ['']); - } - { - var result_195; - result_195 = _({ a: '' }).chain().concat({ a: '' }); - result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }); - result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }, { a: '' }); - result_195 = _({ a: '' }).chain().concat({ a: '' }); - result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }); - result_195 = _({ a: '' }).chain().concat({ a: '' }, { a: '' }, { a: '' }); - } -})(TestConcat || (TestConcat = {})); -// _.prototype.plant -var TestPlant; -(function (TestPlant) { - { - var result_196; - result_196 = _(any).plant(42); - } - { - var result_197; - result_197 = _(any).plant(''); - } - { - var result_198; - result_198 = _(any).plant(true); - } - { - var result_199; - result_199 = _(any).plant([42]); - } - { - var result_200; - result_200 = _(any).plant([]); - } - { - var result_201; - result_201 = _(any).plant({}); - } - { - var result_202; - result_202 = _(any).chain().plant(42); - } - { - var result_203; - result_203 = _(any).chain().plant(''); - } - { - var result_204; - result_204 = _(any).chain().plant(true); - } - { - var result_205; - result_205 = _(any).chain().plant([42]); - } - { - var result_206; - result_206 = _(any).chain().plant([]); - } - { - var result_207; - result_207 = _(any).chain().plant({}); - } -})(TestPlant || (TestPlant = {})); -// _.prototype.reverse -var TestReverse; -(function (TestReverse) { - { - var result_208; - result: _([42]).reverse(); - } - { - var result_209; - result: _([42]).chain().reverse(); - } -})(TestReverse || (TestReverse = {})); -// _.prototype.toJSON -var TestToJSON; -(function (TestToJSON) { - { - var result_210; - result_210 = _('').toJSON(); - result_210 = _('').chain().toJSON(); - } - { - var result_211; - result_211 = _(42).toJSON(); - result_211 = _(42).chain().toJSON(); - } - { - var result_212; - result_212 = _(true).toJSON(); - result_212 = _(true).chain().toJSON(); - } - { - var result_213; - result_213 = _([]).toJSON(); - result_213 = _([]).chain().toJSON(); - } - { - var result_214; - result_214 = _({ a: '' }).toJSON(); - result_214 = _({ a: '' }).chain().toJSON(); - } -})(TestToJSON || (TestToJSON = {})); -// _.prototype.toString -var TestToString; -(function (TestToString) { - var result; - result = _('').toString(); - result = _(42).toString(); - result = _(true).toString(); - result = _(['']).toString(); - result = _({}).toString(); - result = _('').chain().toString(); - result = _(42).chain().toString(); - result = _(true).chain().toString(); - result = _(['']).chain().toString(); - result = _({}).chain().toString(); -})(TestToString || (TestToString = {})); -// _.prototype.value -var TestValue; -(function (TestValue) { - { - var result_215; - result_215 = _('').value(); - result_215 = _('').chain().value(); - } - { - var result_216; - result_216 = _(42).value(); - result_216 = _(42).chain().value(); - } - { - var result_217; - result_217 = _(true).value(); - result_217 = _(true).chain().value(); - } - { - var result_218; - result_218 = _([]).value(); - result_218 = _([]).chain().value(); - } - { - var result_219; - result_219 = _({ a: '' }).value(); - result_219 = _({ a: '' }).chain().value(); - } -})(TestValue || (TestValue = {})); -// _.prototype.valueOf -var TestValueOf; -(function (TestValueOf) { - { - var result_220; - result_220 = _('').valueOf(); - result_220 = _('').chain().valueOf(); - } - { - var result_221; - result_221 = _(42).valueOf(); - result_221 = _(42).chain().valueOf(); - } - { - var result_222; - result_222 = _(true).valueOf(); - result_222 = _(true).chain().valueOf(); - } - { - var result_223; - result_223 = _([]).valueOf(); - result_223 = _([]).chain().valueOf(); - } - { - var result_224; - result_224 = _({ a: '' }).valueOf(); - result_224 = _({ a: '' }).chain().valueOf(); - } -})(TestValueOf || (TestValueOf = {})); -/************** - * Collection * - **************/ -// _.at -var TestAt; -(function (TestAt) { - var array; - var list; - var dictionary; - { - var result_225; - result_225 = _.at(array, 0, '1', [2], ['3'], [4, '5']); - result_225 = _.at(list, 0, '1', [2], ['3'], [4, '5']); - result_225 = _.at(dictionary, 0, '1', [2], ['3'], [4, '5']); - } - { - var result_226; - result_226 = _(array).at(0, '1', [2], ['3'], [4, '5']); - result_226 = _(list).at(0, '1', [2], ['3'], [4, '5']); - result_226 = _(dictionary).at(0, '1', [2], ['3'], [4, '5']); - } - { - var result_227; - result_227 = _(array).chain().at(0, '1', [2], ['3'], [4, '5']); - result_227 = _(list).chain().at(0, '1', [2], ['3'], [4, '5']); - result_227 = _(dictionary).chain().at(0, '1', [2], ['3'], [4, '5']); - } -})(TestAt || (TestAt = {})); -// _.countBy -var TestCountBy; -(function (TestCountBy) { - var array; - var list; - var dictionary; - var numericDictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - var numericDictionaryIterator; - { - var result_228; - result_228 = _.countBy(''); - result_228 = _.countBy('', stringIterator); - result_228 = _.countBy('', stringIterator, any); - result_228 = _.countBy(array); - result_228 = _.countBy(array, listIterator); - result_228 = _.countBy(array, listIterator, any); - result_228 = _.countBy(array, ''); - result_228 = _.countBy(array, '', any); - result_228 = _.countBy(array, { a: 42 }); - result_228 = _.countBy(array, { a: 42 }); - result_228 = _.countBy(list); - result_228 = _.countBy(list, listIterator); - result_228 = _.countBy(list, listIterator, any); - result_228 = _.countBy(list, ''); - result_228 = _.countBy(list, '', any); - result_228 = _.countBy(list, { a: 42 }); - result_228 = _.countBy(list, { a: 42 }); - result_228 = _.countBy(dictionary); - result_228 = _.countBy(dictionary, dictionaryIterator); - result_228 = _.countBy(dictionary, dictionaryIterator, any); - result_228 = _.countBy(dictionary, ''); - result_228 = _.countBy(dictionary, '', any); - result_228 = _.countBy(dictionary, { a: 42 }); - result_228 = _.countBy(dictionary, { a: 42 }); - result_228 = _.countBy(numericDictionary); - result_228 = _.countBy(numericDictionary, numericDictionaryIterator); - result_228 = _.countBy(numericDictionary, numericDictionaryIterator, any); - result_228 = _.countBy(numericDictionary, ''); - result_228 = _.countBy(numericDictionary, '', any); - result_228 = _.countBy(numericDictionary, { a: 42 }); - result_228 = _.countBy(numericDictionary, { a: 42 }); - } - { - var resutl; - result = _('').countBy(); - result = _('').countBy(stringIterator); - result = _('').countBy(stringIterator, any); - result = _(array).countBy(); - result = _(array).countBy(listIterator); - result = _(array).countBy(listIterator, any); - result = _(array).countBy(''); - result = _(array).countBy('', any); - result = _(array).countBy({ a: 42 }); - result = _(array).countBy({ a: 42 }); - result = _(list).countBy(); - result = _(list).countBy(listIterator); - result = _(list).countBy(listIterator, any); - result = _(list).countBy(''); - result = _(list).countBy('', any); - result = _(list).countBy({ a: 42 }); - result = _(list).countBy({ a: 42 }); - result = _(dictionary).countBy(); - result = _(dictionary).countBy(dictionaryIterator); - result = _(dictionary).countBy(dictionaryIterator, any); - result = _(dictionary).countBy(''); - result = _(dictionary).countBy('', any); - result = _(dictionary).countBy({ a: 42 }); - result = _(dictionary).countBy({ a: 42 }); - result = _(numericDictionary).countBy(); - result = _(numericDictionary).countBy(numericDictionaryIterator); - result = _(numericDictionary).countBy(numericDictionaryIterator, any); - result = _(numericDictionary).countBy(''); - result = _(numericDictionary).countBy('', any); - result = _(numericDictionary).countBy({ a: 42 }); - result = _(numericDictionary).countBy({ a: 42 }); - } - { - var resutl; - result = _('').chain().countBy(); - result = _('').chain().countBy(stringIterator); - result = _('').chain().countBy(stringIterator, any); - result = _(array).chain().countBy(); - result = _(array).chain().countBy(listIterator); - result = _(array).chain().countBy(listIterator, any); - result = _(array).chain().countBy(''); - result = _(array).chain().countBy('', any); - result = _(array).chain().countBy({ a: 42 }); - result = _(array).chain().countBy({ a: 42 }); - result = _(list).chain().countBy(); - result = _(list).chain().countBy(listIterator); - result = _(list).chain().countBy(listIterator, any); - result = _(list).chain().countBy(''); - result = _(list).chain().countBy('', any); - result = _(list).chain().countBy({ a: 42 }); - result = _(list).chain().countBy({ a: 42 }); - result = _(dictionary).chain().countBy(); - result = _(dictionary).chain().countBy(dictionaryIterator); - result = _(dictionary).chain().countBy(dictionaryIterator, any); - result = _(dictionary).chain().countBy(''); - result = _(dictionary).chain().countBy('', any); - result = _(dictionary).chain().countBy({ a: 42 }); - result = _(dictionary).chain().countBy({ a: 42 }); - result = _(numericDictionary).chain().countBy(); - result = _(numericDictionary).chain().countBy(numericDictionaryIterator); - result = _(numericDictionary).chain().countBy(numericDictionaryIterator, any); - result = _(numericDictionary).chain().countBy(''); - result = _(numericDictionary).chain().countBy('', any); - result = _(numericDictionary).chain().countBy({ a: 42 }); - result = _(numericDictionary).chain().countBy({ a: 42 }); - } -})(TestCountBy || (TestCountBy = {})); -// _.each -var TestEach; -(function (TestEach) { - var array; - var list; - var dictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - { - var result_229; - _.each('', stringIterator); - _.each('', stringIterator, any); - } - { - var result_230; - _.each(array, listIterator); - _.each(array, listIterator, any); - } - { - var result_231; - _.each(list, listIterator); - _.each(list, listIterator, any); - } - { - var result_232; - _.each(dictionary, dictionaryIterator); - _.each(dictionary, dictionaryIterator, any); - } - { - var result_233; - _('').each(stringIterator); - _('').each(stringIterator, any); - } - { - var result_234; - _(array).each(listIterator); - _(array).each(listIterator, any); - } - { - var result_235; - _(list).each(listIterator); - _(list).each(listIterator, any); - } - { - var result_236; - _(dictionary).each(dictionaryIterator); - _(dictionary).each(dictionaryIterator, any); - } - { - var result_237; - _('').chain().each(stringIterator); - _('').chain().each(stringIterator, any); - } - { - var result_238; - _(array).chain().each(listIterator); - _(array).chain().each(listIterator, any); - } - { - var result_239; - _(list).chain().each(listIterator); - _(list).chain().each(listIterator, any); - } - { - var result_240; - _(dictionary).chain().each(dictionaryIterator); - _(dictionary).chain().each(dictionaryIterator, any); - } -})(TestEach || (TestEach = {})); -// _.eachRight -var TestEachRight; -(function (TestEachRight) { - var array; - var list; - var dictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - { - var result_241; - _.eachRight('', stringIterator); - _.eachRight('', stringIterator, any); - } - { - var result_242; - _.eachRight(array, listIterator); - _.eachRight(array, listIterator, any); - } - { - var result_243; - _.eachRight(list, listIterator); - _.eachRight(list, listIterator, any); - } - { - var result_244; - _.eachRight(dictionary, dictionaryIterator); - _.eachRight(dictionary, dictionaryIterator, any); - } - { - var result_245; - _('').eachRight(stringIterator); - _('').eachRight(stringIterator, any); - } - { - var result_246; - _(array).eachRight(listIterator); - _(array).eachRight(listIterator, any); - } - { - var result_247; - _(list).eachRight(listIterator); - _(list).eachRight(listIterator, any); - } - { - var result_248; - _(dictionary).eachRight(dictionaryIterator); - _(dictionary).eachRight(dictionaryIterator, any); - } - { - var result_249; - _('').chain().eachRight(stringIterator); - _('').chain().eachRight(stringIterator, any); - } - { - var result_250; - _(array).chain().eachRight(listIterator); - _(array).chain().eachRight(listIterator, any); - } - { - var result_251; - _(list).chain().eachRight(listIterator); - _(list).chain().eachRight(listIterator, any); - } - { - var result_252; - _(dictionary).chain().eachRight(dictionaryIterator); - _(dictionary).chain().eachRight(dictionaryIterator, any); - } -})(TestEachRight || (TestEachRight = {})); -// _.every -var TestEvery; -(function (TestEvery) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - { - var result_253; - result_253 = _.every(array); - result_253 = _.every(array, listIterator); - result_253 = _.every(array, listIterator, any); - result_253 = _.every(array, ''); - result_253 = _.every(array, { a: 42 }); - result_253 = _.every(list); - result_253 = _.every(list, listIterator); - result_253 = _.every(list, listIterator, any); - result_253 = _.every(list, ''); - result_253 = _.every(list, { a: 42 }); - result_253 = _.every(dictionary); - result_253 = _.every(dictionary, dictionaryIterator); - result_253 = _.every(dictionary, dictionaryIterator, any); - result_253 = _.every(dictionary, ''); - result_253 = _.every(dictionary, { a: 42 }); - result_253 = _(array).every(); - result_253 = _(array).every(listIterator); - result_253 = _(array).every(listIterator, any); - result_253 = _(array).every(''); - result_253 = _(array).every({ a: 42 }); - result_253 = _(list).every(); - result_253 = _(list).every(listIterator); - result_253 = _(list).every(listIterator, any); - result_253 = _(list).every(''); - result_253 = _(list).every({ a: 42 }); - result_253 = _(dictionary).every(); - result_253 = _(dictionary).every(dictionaryIterator); - result_253 = _(dictionary).every(dictionaryIterator, any); - result_253 = _(dictionary).every(''); - result_253 = _(dictionary).every({ a: 42 }); - } - { - var result_254; - result_254 = _(array).chain().every(); - result_254 = _(array).chain().every(listIterator); - result_254 = _(array).chain().every(listIterator, any); - result_254 = _(array).chain().every(''); - result_254 = _(array).chain().every({ a: 42 }); - result_254 = _(list).chain().every(); - result_254 = _(list).chain().every(listIterator); - result_254 = _(list).chain().every(listIterator, any); - result_254 = _(list).chain().every(''); - result_254 = _(list).chain().every({ a: 42 }); - result_254 = _(dictionary).chain().every(); - result_254 = _(dictionary).chain().every(dictionaryIterator); - result_254 = _(dictionary).chain().every(dictionaryIterator, any); - result_254 = _(dictionary).chain().every(''); - result_254 = _(dictionary).chain().every({ a: 42 }); - } -})(TestEvery || (TestEvery = {})); -// _.filter -var TestFilter; -(function (TestFilter) { - var array; - var list; - var dictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - { - var result_255; - result_255 = _.filter('', stringIterator); - result_255 = _.filter('', stringIterator, any); - } - { - var result_256; - result_256 = _.filter(array, listIterator); - result_256 = _.filter(array, listIterator, any); - result_256 = _.filter(array, ''); - result_256 = _.filter(array, '', any); - result_256 = _.filter(array, { a: 42 }); - result_256 = _.filter(list, listIterator); - result_256 = _.filter(list, listIterator, any); - result_256 = _.filter(list, ''); - result_256 = _.filter(list, '', any); - result_256 = _.filter(list, { a: 42 }); - result_256 = _.filter(dictionary, dictionaryIterator); - result_256 = _.filter(dictionary, dictionaryIterator, any); - result_256 = _.filter(dictionary, ''); - result_256 = _.filter(dictionary, '', any); - result_256 = _.filter(dictionary, { a: 42 }); - } - { - var result_257; - result_257 = _('').filter(stringIterator); - result_257 = _('').filter(stringIterator, any); - } - { - var result_258; - result_258 = _(array).filter(listIterator); - result_258 = _(array).filter(listIterator, any); - result_258 = _(array).filter(''); - result_258 = _(array).filter('', any); - result_258 = _(array).filter({ a: 42 }); - result_258 = _(list).filter(listIterator); - result_258 = _(list).filter(listIterator, any); - result_258 = _(list).filter(''); - result_258 = _(list).filter('', any); - result_258 = _(list).filter({ a: 42 }); - result_258 = _(dictionary).filter(dictionaryIterator); - result_258 = _(dictionary).filter(dictionaryIterator, any); - result_258 = _(dictionary).filter(''); - result_258 = _(dictionary).filter('', any); - result_258 = _(dictionary).filter({ a: 42 }); - } - { - var result_259; - result_259 = _('').chain().filter(stringIterator); - result_259 = _('').chain().filter(stringIterator, any); - } - { - var result_260; - result_260 = _(array).chain().filter(listIterator); - result_260 = _(array).chain().filter(listIterator, any); - result_260 = _(array).chain().filter(''); - result_260 = _(array).chain().filter('', any); - result_260 = _(array).chain().filter({ a: 42 }); - result_260 = _(list).chain().filter(listIterator); - result_260 = _(list).chain().filter(listIterator, any); - result_260 = _(list).chain().filter(''); - result_260 = _(list).chain().filter('', any); - result_260 = _(list).chain().filter({ a: 42 }); - result_260 = _(dictionary).chain().filter(dictionaryIterator); - result_260 = _(dictionary).chain().filter(dictionaryIterator, any); - result_260 = _(dictionary).chain().filter(''); - result_260 = _(dictionary).chain().filter('', any); - result_260 = _(dictionary).chain().filter({ a: 42 }); - } -})(TestFilter || (TestFilter = {})); -// _.find -var TestFind; -(function (TestFind) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - var result; - result = _.find(array); - result = _.find(array, listIterator); - result = _.find(array, listIterator, any); - result = _.find(array, ''); - result = _.find(array, { a: 42 }); - result = _.find(list); - result = _.find(list, listIterator); - result = _.find(list, listIterator, any); - result = _.find(list, ''); - result = _.find(list, { a: 42 }); - result = _.find(dictionary); - result = _.find(dictionary, dictionaryIterator); - result = _.find(dictionary, dictionaryIterator, any); - result = _.find(dictionary, ''); - result = _.find(dictionary, { a: 42 }); - result = _(array).find(); - result = _(array).find(listIterator); - result = _(array).find(listIterator, any); - result = _(array).find(''); - result = _(array).find({ a: 42 }); - result = _(list).find(); - result = _(list).find(listIterator); - result = _(list).find(listIterator, any); - result = _(list).find(''); - result = _(list).find({ a: 42 }); - result = _(dictionary).find(); - result = _(dictionary).find(dictionaryIterator); - result = _(dictionary).find(dictionaryIterator, any); - result = _(dictionary).find(''); - result = _(dictionary).find({ a: 42 }); -})(TestFind || (TestFind = {})); -result = _.findLast([1, 2, 3, 4], function (num) { - return num % 2 == 0; -}); -result = _.findLast(foodsCombined, { 'type': 'vegetable' }); -result = _.findLast(foodsCombined, 'organic'); -result = _([1, 2, 3, 4]).findLast(function (num) { - return num % 2 == 0; -}); -result = _(foodsCombined).findLast({ 'type': 'vegetable' }); -result = _(foodsCombined).findLast('organic'); -// _.forEach -var TestForEach; -(function (TestForEach) { - var array; - var list; - var dictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - { - var result_261; - _.forEach('', stringIterator); - _.forEach('', stringIterator, any); - } - { - var result_262; - _.forEach(array, listIterator); - _.forEach(array, listIterator, any); - } - { - var result_263; - _.forEach(list, listIterator); - _.forEach(list, listIterator, any); - } - { - var result_264; - _.forEach(dictionary, dictionaryIterator); - _.forEach(dictionary, dictionaryIterator, any); - } - { - var result_265; - _('').forEach(stringIterator); - _('').forEach(stringIterator, any); - } - { - var result_266; - _(array).forEach(listIterator); - _(array).forEach(listIterator, any); - } - { - var result_267; - _(list).forEach(listIterator); - _(list).forEach(listIterator, any); - } - { - var result_268; - _(dictionary).forEach(dictionaryIterator); - _(dictionary).forEach(dictionaryIterator, any); - } - { - var result_269; - _('').chain().forEach(stringIterator); - _('').chain().forEach(stringIterator, any); - } - { - var result_270; - _(array).chain().forEach(listIterator); - _(array).chain().forEach(listIterator, any); - } - { - var result_271; - _(list).chain().forEach(listIterator); - _(list).chain().forEach(listIterator, any); - } - { - var result_272; - _(dictionary).chain().forEach(dictionaryIterator); - _(dictionary).chain().forEach(dictionaryIterator, any); - } -})(TestForEach || (TestForEach = {})); -// _.forEachRight -var TestForEachRight; -(function (TestForEachRight) { - var array; - var list; - var dictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - { - var result_273; - _.forEachRight('', stringIterator); - _.forEachRight('', stringIterator, any); - } - { - var result_274; - _.forEachRight(array, listIterator); - _.forEachRight(array, listIterator, any); - } - { - var result_275; - _.forEachRight(list, listIterator); - _.forEachRight(list, listIterator, any); - } - { - var result_276; - _.forEachRight(dictionary, dictionaryIterator); - _.forEachRight(dictionary, dictionaryIterator, any); - } - { - var result_277; - _('').forEachRight(stringIterator); - _('').forEachRight(stringIterator, any); - } - { - var result_278; - _(array).forEachRight(listIterator); - _(array).forEachRight(listIterator, any); - } - { - var result_279; - _(list).forEachRight(listIterator); - _(list).forEachRight(listIterator, any); - } - { - var result_280; - _(dictionary).forEachRight(dictionaryIterator); - _(dictionary).forEachRight(dictionaryIterator, any); - } - { - var result_281; - _('').chain().forEachRight(stringIterator); - _('').chain().forEachRight(stringIterator, any); - } - { - var result_282; - _(array).chain().forEachRight(listIterator); - _(array).chain().forEachRight(listIterator, any); - } - { - var result_283; - _(list).chain().forEachRight(listIterator); - _(list).chain().forEachRight(listIterator, any); - } - { - var result_284; - _(dictionary).chain().forEachRight(dictionaryIterator); - _(dictionary).chain().forEachRight(dictionaryIterator, any); - } -})(TestForEachRight || (TestForEachRight = {})); -// _.groupBy -var TestGroupBy; -(function (TestGroupBy) { - var array; - var list; - var dictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - { - var result_285; - result_285 = _.groupBy(''); - result_285 = _.groupBy('', stringIterator); - result_285 = _.groupBy('', stringIterator, any); - result_285 = _.groupBy('', stringIterator); - result_285 = _.groupBy('', stringIterator, any); - } - { - var result_286; - result_286 = _.groupBy(array); - result_286 = _.groupBy(array, listIterator); - result_286 = _.groupBy(array, listIterator, any); - result_286 = _.groupBy(array, ''); - result_286 = _.groupBy(array, '', any); - result_286 = _.groupBy(array, { a: 42 }); - result_286 = _.groupBy(array, listIterator); - result_286 = _.groupBy(array, listIterator, any); - result_286 = _.groupBy(array, '', true); - result_286 = _.groupBy(array, { a: 42 }); - result_286 = _.groupBy(list); - result_286 = _.groupBy(list, listIterator); - result_286 = _.groupBy(list, listIterator, any); - result_286 = _.groupBy(list, ''); - result_286 = _.groupBy(list, '', any); - result_286 = _.groupBy(list, { a: 42 }); - result_286 = _.groupBy(list, listIterator); - result_286 = _.groupBy(list, listIterator, any); - result_286 = _.groupBy(list, '', true); - result_286 = _.groupBy(list, { a: 42 }); - result_286 = _.groupBy(dictionary); - result_286 = _.groupBy(dictionary, dictionaryIterator); - result_286 = _.groupBy(dictionary, dictionaryIterator, any); - result_286 = _.groupBy(dictionary, ''); - result_286 = _.groupBy(dictionary, '', any); - result_286 = _.groupBy(dictionary, { a: 42 }); - result_286 = _.groupBy(dictionary, dictionaryIterator); - result_286 = _.groupBy(dictionary, dictionaryIterator, any); - result_286 = _.groupBy(dictionary, '', true); - result_286 = _.groupBy(dictionary, { a: 42 }); - } - { - var result_287; - result_287 = _('').groupBy(); - result_287 = _('').groupBy(stringIterator); - result_287 = _('').groupBy(stringIterator, any); - } - { - var result_288; - result_288 = _(array).groupBy(); - result_288 = _(array).groupBy(listIterator); - result_288 = _(array).groupBy(listIterator, any); - result_288 = _(array).groupBy(''); - result_288 = _(array).groupBy('', true); - result_288 = _(array).groupBy({ a: 42 }); - result_288 = _(list).groupBy(); - result_288 = _(list).groupBy(listIterator); - result_288 = _(list).groupBy(listIterator, any); - result_288 = _(list).groupBy(''); - result_288 = _(list).groupBy('', any); - result_288 = _(list).groupBy({ a: 42 }); - result_288 = _(list).groupBy(listIterator); - result_288 = _(list).groupBy(listIterator, any); - result_288 = _(list).groupBy('', true); - result_288 = _(list).groupBy({ a: 42 }); - result_288 = _(dictionary).groupBy(); - result_288 = _(dictionary).groupBy(dictionaryIterator); - result_288 = _(dictionary).groupBy(dictionaryIterator, any); - result_288 = _(dictionary).groupBy(''); - result_288 = _(dictionary).groupBy('', any); - result_288 = _(dictionary).groupBy({ a: 42 }); - result_288 = _(dictionary).groupBy(dictionaryIterator); - result_288 = _(dictionary).groupBy(dictionaryIterator, any); - result_288 = _(dictionary).groupBy('', true); - result_288 = _(dictionary).groupBy({ a: 42 }); - } - { - var result_289; - result_289 = _('').chain().groupBy(); - result_289 = _('').chain().groupBy(stringIterator); - result_289 = _('').chain().groupBy(stringIterator, any); - } - { - var result_290; - result_290 = _(array).chain().groupBy(); - result_290 = _(array).chain().groupBy(listIterator); - result_290 = _(array).chain().groupBy(listIterator, any); - result_290 = _(array).chain().groupBy(''); - result_290 = _(array).chain().groupBy('', true); - result_290 = _(array).chain().groupBy({ a: 42 }); - result_290 = _(list).chain().groupBy(); - result_290 = _(list).chain().groupBy(listIterator); - result_290 = _(list).chain().groupBy(listIterator, any); - result_290 = _(list).chain().groupBy(''); - result_290 = _(list).chain().groupBy('', any); - result_290 = _(list).chain().groupBy({ a: 42 }); - result_290 = _(list).chain().groupBy(listIterator); - result_290 = _(list).chain().groupBy(listIterator, any); - result_290 = _(list).chain().groupBy('', true); - result_290 = _(list).chain().groupBy({ a: 42 }); - result_290 = _(dictionary).chain().groupBy(); - result_290 = _(dictionary).chain().groupBy(dictionaryIterator); - result_290 = _(dictionary).chain().groupBy(dictionaryIterator, any); - result_290 = _(dictionary).chain().groupBy(''); - result_290 = _(dictionary).chain().groupBy('', any); - result_290 = _(dictionary).chain().groupBy({ a: 42 }); - result_290 = _(dictionary).chain().groupBy(dictionaryIterator); - result_290 = _(dictionary).chain().groupBy(dictionaryIterator, any); - result_290 = _(dictionary).chain().groupBy('', true); - result_290 = _(dictionary).chain().groupBy({ a: 42 }); - } -})(TestGroupBy || (TestGroupBy = {})); -// _.includes -var TestIncludes; -(function (TestIncludes) { - var array; - var list; - var dictionary; - var target; - { - var result_291; - result_291 = _.includes(array, target); - result_291 = _.includes(array, target, 42); - result_291 = _.includes(list, target); - result_291 = _.includes(list, target, 42); - result_291 = _.includes(dictionary, target); - result_291 = _.includes(dictionary, target, 42); - result_291 = _(array).includes(target); - result_291 = _(array).includes(target, 42); - result_291 = _(list).includes(target); - result_291 = _(list).includes(target, 42); - result_291 = _(dictionary).includes(target); - result_291 = _(dictionary).includes(target, 42); - } - { - var result_292; - result_292 = _(array).chain().includes(target); - result_292 = _(array).chain().includes(target, 42); - result_292 = _(list).chain().includes(target); - result_292 = _(list).chain().includes(target, 42); - result_292 = _(dictionary).chain().includes(target); - result_292 = _(dictionary).chain().includes(target, 42); - } -})(TestIncludes || (TestIncludes = {})); -// _.keyBy -var TestKeyBy; -(function (TestKeyBy) { - var array; - var list; - var dictionary; - var numericDictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - var numericDictionaryIterator; - { - var result_293; - result_293 = _.keyBy('abcd'); - result_293 = _.keyBy('abcd', stringIterator); - result_293 = _.keyBy('abcd', stringIterator, any); - } - { - var result_294; - result_294 = _.keyBy(array); - result_294 = _.keyBy(array, listIterator); - result_294 = _.keyBy(array, listIterator, any); - result_294 = _.keyBy(array, 'a'); - result_294 = _.keyBy(array, 'a', any); - result_294 = _.keyBy(array, { a: 42 }); - result_294 = _.keyBy(array, { a: 42 }); - result_294 = _.keyBy(list); - result_294 = _.keyBy(list, listIterator); - result_294 = _.keyBy(list, listIterator, any); - result_294 = _.keyBy(list, 'a'); - result_294 = _.keyBy(list, 'a', any); - result_294 = _.keyBy(list, { a: 42 }); - result_294 = _.keyBy(list, { a: 42 }); - result_294 = _.keyBy(numericDictionary); - result_294 = _.keyBy(numericDictionary, numericDictionaryIterator); - result_294 = _.keyBy(numericDictionary, numericDictionaryIterator, any); - result_294 = _.keyBy(numericDictionary, 'a'); - result_294 = _.keyBy(numericDictionary, 'a', any); - result_294 = _.keyBy(numericDictionary, { a: 42 }); - result_294 = _.keyBy(numericDictionary, { a: 42 }); - result_294 = _.keyBy(dictionary); - result_294 = _.keyBy(dictionary, dictionaryIterator); - result_294 = _.keyBy(dictionary, dictionaryIterator, any); - result_294 = _.keyBy(dictionary, 'a'); - result_294 = _.keyBy(dictionary, 'a', any); - result_294 = _.keyBy(dictionary, { a: 42 }); - result_294 = _.keyBy(dictionary, { a: 42 }); - } - { - var result_295; - result_295 = _('abcd').keyBy(); - result_295 = _('abcd').keyBy(stringIterator); - result_295 = _('abcd').keyBy(stringIterator, any); - } - { - var result_296; - result_296 = _(array).keyBy(); - result_296 = _(array).keyBy(listIterator); - result_296 = _(array).keyBy(listIterator, any); - result_296 = _(array).keyBy('a'); - result_296 = _(array).keyBy('a', any); - result_296 = _(array).keyBy({ a: 42 }); - result_296 = _(list).keyBy(); - result_296 = _(list).keyBy(listIterator); - result_296 = _(list).keyBy(listIterator, any); - result_296 = _(list).keyBy('a'); - result_296 = _(list).keyBy('a', any); - result_296 = _(list).keyBy({ a: 42 }); - result_296 = _(list).keyBy({ a: 42 }); - result_296 = _(numericDictionary).keyBy(); - result_296 = _(numericDictionary).keyBy(numericDictionaryIterator); - result_296 = _(numericDictionary).keyBy(numericDictionaryIterator, any); - result_296 = _(numericDictionary).keyBy('a'); - result_296 = _(numericDictionary).keyBy('a', any); - result_296 = _(numericDictionary).keyBy({ a: 42 }); - result_296 = _(numericDictionary).keyBy({ a: 42 }); - result_296 = _(dictionary).keyBy(); - result_296 = _(dictionary).keyBy(dictionaryIterator); - result_296 = _(dictionary).keyBy(dictionaryIterator, any); - result_296 = _(dictionary).keyBy('a'); - result_296 = _(dictionary).keyBy('a', any); - result_296 = _(dictionary).keyBy({ a: 42 }); - result_296 = _(dictionary).keyBy({ a: 42 }); - } - { - var result_297; - result_297 = _('abcd').chain().keyBy(); - result_297 = _('abcd').chain().keyBy(stringIterator); - result_297 = _('abcd').chain().keyBy(stringIterator, any); - } - { - var result_298; - result_298 = _(array).chain().keyBy(); - result_298 = _(array).chain().keyBy(listIterator); - result_298 = _(array).chain().keyBy(listIterator, any); - result_298 = _(array).chain().keyBy('a'); - result_298 = _(array).chain().keyBy('a', any); - result_298 = _(array).chain().keyBy({ a: 42 }); - result_298 = _(list).chain().keyBy(); - result_298 = _(list).chain().keyBy(listIterator); - result_298 = _(list).chain().keyBy(listIterator, any); - result_298 = _(list).chain().keyBy('a'); - result_298 = _(list).chain().keyBy('a', any); - result_298 = _(list).chain().keyBy({ a: 42 }); - result_298 = _(list).chain().keyBy({ a: 42 }); - result_298 = _(numericDictionary).chain().keyBy(); - result_298 = _(numericDictionary).chain().keyBy(numericDictionaryIterator); - result_298 = _(numericDictionary).chain().keyBy(numericDictionaryIterator, any); - result_298 = _(numericDictionary).chain().keyBy('a'); - result_298 = _(numericDictionary).chain().keyBy('a', any); - result_298 = _(numericDictionary).chain().keyBy({ a: 42 }); - result_298 = _(numericDictionary).chain().keyBy({ a: 42 }); - result_298 = _(dictionary).chain().keyBy(); - result_298 = _(dictionary).chain().keyBy(dictionaryIterator); - result_298 = _(dictionary).chain().keyBy(dictionaryIterator, any); - result_298 = _(dictionary).chain().keyBy('a'); - result_298 = _(dictionary).chain().keyBy('a', any); - result_298 = _(dictionary).chain().keyBy({ a: 42 }); - result_298 = _(dictionary).chain().keyBy({ a: 42 }); - } -})(TestKeyBy || (TestKeyBy = {})); -//_.invokeMap -var TestInvokeMap; -(function (TestInvokeMap) { - var numArray = [4, 2, 1, 3]; - var numDict = { - a: 1, - b: 2, - c: 3, - d: 4 - }; - { - var result_299; - result_299 = _.invokeMap(numArray, 'toString'); - result_299 = _.invokeMap(numArray, 'toString', 2); - result_299 = _.invokeMap(numArray, 'toString'); - result_299 = _.invokeMap(numArray, 'toString', 2); - result_299 = _(numArray).invokeMap('toString').value(); - result_299 = _(numArray).invokeMap('toString', 2).value(); - result_299 = _(numArray).chain().invokeMap('toString').value(); - result_299 = _(numArray).chain().invokeMap('toString', 2).value(); - result_299 = _.invokeMap(numArray, Number.prototype.toString); - result_299 = _.invokeMap(numArray, Number.prototype.toString, 2); - result_299 = _.invokeMap(numArray, Number.prototype.toString); - result_299 = _.invokeMap(numArray, Number.prototype.toString, 2); - result_299 = _(numArray).invokeMap(Number.prototype.toString).value(); - result_299 = _(numArray).invokeMap(Number.prototype.toString, 2).value(); - result_299 = _(numArray).chain().invokeMap(Number.prototype.toString).value(); - result_299 = _(numArray).chain().invokeMap(Number.prototype.toString, 2).value(); - } - { - var result_300; - result_300 = _.invokeMap(numDict, 'toString'); - result_300 = _.invokeMap(numDict, 'toString', 2); - result_300 = _.invokeMap(numDict, 'toString'); - result_300 = _.invokeMap(numDict, 'toString', 2); - result_300 = _(numDict).invokeMap('toString').value(); - result_300 = _(numDict).invokeMap('toString', 2).value(); - result_300 = _(numDict).chain().invokeMap('toString').value(); - result_300 = _(numDict).chain().invokeMap('toString', 2).value(); - result_300 = _.invokeMap(numDict, Number.prototype.toString); - result_300 = _.invokeMap(numDict, Number.prototype.toString, 2); - result_300 = _.invokeMap(numDict, Number.prototype.toString); - result_300 = _.invokeMap(numDict, Number.prototype.toString, 2); - result_300 = _(numDict).invokeMap(Number.prototype.toString).value(); - result_300 = _(numDict).invokeMap(Number.prototype.toString, 2).value(); - result_300 = _(numDict).chain().invokeMap(Number.prototype.toString).value(); - result_300 = _(numDict).chain().invokeMap(Number.prototype.toString, 2).value(); - } -})(TestInvokeMap || (TestInvokeMap = {})); -// _.map -var TestMap; -(function (TestMap) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - { - var result_301; - result_301 = _.map(array); - result_301 = _.map(array, listIterator); - result_301 = _.map(array, listIterator, any); - result_301 = _.map(array, ''); - result_301 = _.map(list); - result_301 = _.map(list, listIterator); - result_301 = _.map(list, listIterator, any); - result_301 = _.map(list, ''); - result_301 = _.map(dictionary); - result_301 = _.map(dictionary, dictionaryIterator); - result_301 = _.map(dictionary, dictionaryIterator, any); - result_301 = _.map(dictionary, ''); - } - { - var result_302; - result_302 = _.map(array, {}); - result_302 = _.map(list, {}); - result_302 = _.map(dictionary, {}); - } - { - var result_303; - result_303 = _(array).map(); - result_303 = _(array).map(listIterator); - result_303 = _(array).map(listIterator, any); - result_303 = _(array).map(''); - result_303 = _(list).map(); - result_303 = _(list).map(listIterator); - result_303 = _(list).map(listIterator, any); - result_303 = _(list).map(''); - result_303 = _(dictionary).map(); - result_303 = _(dictionary).map(dictionaryIterator); - result_303 = _(dictionary).map(dictionaryIterator, any); - result_303 = _(dictionary).map(''); - } - { - var result_304; - result_304 = _(array).map({}); - result_304 = _(list).map({}); - result_304 = _(dictionary).map({}); - } - { - var result_305; - result_305 = _(array).chain().map(); - result_305 = _(array).chain().map(listIterator); - result_305 = _(array).chain().map(listIterator, any); - result_305 = _(array).chain().map(''); - result_305 = _(list).chain().map(); - result_305 = _(list).chain().map(listIterator); - result_305 = _(list).chain().map(listIterator, any); - result_305 = _(list).chain().map(''); - result_305 = _(dictionary).chain().map(); - result_305 = _(dictionary).chain().map(dictionaryIterator); - result_305 = _(dictionary).chain().map(dictionaryIterator, any); - result_305 = _(dictionary).chain().map(''); - } - { - var result_306; - result_306 = _(array).chain().map({}); - result_306 = _(list).chain().map({}); - result_306 = _(dictionary).chain().map({}); - } -})(TestMap || (TestMap = {})); -// _.partition -result = _.partition('abcd', function (n) { return n < 'c'; }); -result = _.partition(['a', 'b', 'c', 'd'], function (n) { return n < 'c'; }); -result = _.partition([1, 2, 3, 4], function (n) { return n < 3; }); -result = _.partition({ 0: 1, 1: 2, 2: 3, 3: 4, length: 4 }, function (n) { return n < 3; }); -result = _.partition({ a: 1, b: 2, c: 3, d: 4 }, function (n) { return n < 3; }); -result = _.partition([{ a: 1 }, { a: 2 }], { a: 2 }); -result = _.partition({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }, { a: 2 }); -result = _.partition({ 0: { a: 1 }, 1: { a: 2 } }, { a: 2 }); -result = _.partition([{ a: 1 }, { a: 2 }], 'a'); -result = _.partition([{ a: 1 }, { a: 2 }], 'a', 2); -result = _.partition({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }, 'a'); -result = _.partition({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }, 'a', 2); -result = _.partition({ 0: { a: 1 }, 1: { a: 2 } }, 'a'); -result = _.partition({ 0: { a: 1 }, 1: { a: 2 } }, 'a', 2); -result = _('abcd').partition(function (n) { return n < 'c'; }).value(); -result = _(['a', 'b', 'c', 'd']).partition(function (n) { return n < 'c'; }).value(); -result = _([1, 2, 3, 4]).partition(function (n) { return n < 3; }).value(); -result = _({ 0: 1, 1: 2, 2: 3, 3: 4, length: 4 }).partition(function (n) { return n < 3; }).value(); -result = _({ a: 1, b: 2, c: 3, d: 4 }).partition(function (n) { return n < 3; }).value(); -result = _([{ a: 1 }, { a: 2 }]).partition({ a: 2 }).value(); -result = _({ 0: { a: 1 }, 1: { a: 2 }, length: 2 }).partition({ a: 2 }).value(); -result = _({ 0: { a: 1 }, 1: { a: 2 } }).partition({ a: 2 }).value(); -result = _([{ a: 1 }, { a: 2 }]).partition('a').value(); -result = _([{ a: 1 }, { a: 2 }]).partition('a', 2).value(); -result = _({ 0: { a: 1 }, 1: { a: 2 } }).partition('a').value(); -result = _({ 0: { a: 1 }, 1: { a: 2 } }).partition('a', 2).value(); -result = _.reduce([1, 2, 3], function (sum, num) { - return sum + num; -}); -result = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function (r, num, key) { - r[key] = num * 3; - return r; -}, {}); -result = _([1, 2, 3]).reduce(function (sum, num) { - return sum + num; -}); -result = _({ 'a': 1, 'b': 2, 'c': 3 }).reduce(function (r, num, key) { - r[key] = num * 3; - return r; -}, {}); -result = _.reduceRight([[0, 1], [2, 3], [4, 5]], function (a, b) { return a.concat(b); }, []); -// _.reject -var TestReject; -(function (TestReject) { - var array; - var list; - var dictionary; - var stringIterator; - var listIterator; - var dictionaryIterator; - { - var result_307; - result_307 = _.reject('', stringIterator); - result_307 = _.reject('', stringIterator, any); - } - { - var result_308; - result_308 = _.reject(array, listIterator); - result_308 = _.reject(array, listIterator, any); - result_308 = _.reject(array, ''); - result_308 = _.reject(array, '', any); - result_308 = _.reject(array, { a: 42 }); - result_308 = _.reject(list, listIterator); - result_308 = _.reject(list, listIterator, any); - result_308 = _.reject(list, ''); - result_308 = _.reject(list, '', any); - result_308 = _.reject(list, { a: 42 }); - result_308 = _.reject(dictionary, dictionaryIterator); - result_308 = _.reject(dictionary, dictionaryIterator, any); - result_308 = _.reject(dictionary, ''); - result_308 = _.reject(dictionary, '', any); - result_308 = _.reject(dictionary, { a: 42 }); - } - { - var result_309; - result_309 = _('').reject(stringIterator); - result_309 = _('').reject(stringIterator, any); - } - { - var result_310; - result_310 = _(array).reject(listIterator); - result_310 = _(array).reject(listIterator, any); - result_310 = _(array).reject(''); - result_310 = _(array).reject('', any); - result_310 = _(array).reject({ a: 42 }); - result_310 = _(list).reject(listIterator); - result_310 = _(list).reject(listIterator, any); - result_310 = _(list).reject(''); - result_310 = _(list).reject('', any); - result_310 = _(list).reject({ a: 42 }); - result_310 = _(dictionary).reject(dictionaryIterator); - result_310 = _(dictionary).reject(dictionaryIterator, any); - result_310 = _(dictionary).reject(''); - result_310 = _(dictionary).reject('', any); - result_310 = _(dictionary).reject({ a: 42 }); - } - { - var result_311; - result_311 = _('').chain().reject(stringIterator); - result_311 = _('').chain().reject(stringIterator, any); - } - { - var result_312; - result_312 = _(array).chain().reject(listIterator); - result_312 = _(array).chain().reject(listIterator, any); - result_312 = _(array).chain().reject(''); - result_312 = _(array).chain().reject('', any); - result_312 = _(array).chain().reject({ a: 42 }); - result_312 = _(list).chain().reject(listIterator); - result_312 = _(list).chain().reject(listIterator, any); - result_312 = _(list).chain().reject(''); - result_312 = _(list).chain().reject('', any); - result_312 = _(list).chain().reject({ a: 42 }); - result_312 = _(dictionary).chain().reject(dictionaryIterator); - result_312 = _(dictionary).chain().reject(dictionaryIterator, any); - result_312 = _(dictionary).chain().reject(''); - result_312 = _(dictionary).chain().reject('', any); - result_312 = _(dictionary).chain().reject({ a: 42 }); - } -})(TestReject || (TestReject = {})); -// _.sample -result = _.sample([1, 2, 3, 4]); -result = _([1, 2, 3, 4]).sample(); -result = _([1, 2, 3, 4]).sample().value(); -// _.sampleSize -result = _.sampleSize([1, 2, 3, 4], 2); -result = _([1, 2, 3, 4]).sampleSize(2); -result = _([1, 2, 3, 4]).sampleSize(2).value(); -// _.shuffle -var TestShuffle; -(function (TestShuffle) { - var array; - var list; - var dictionary; - { - var result_313; - result_313 = _.shuffle('abc'); - } - { - var result_314; - result_314 = _.shuffle(array); - result_314 = _.shuffle(list); - result_314 = _.shuffle(dictionary); - } - { - var result_315; - result_315 = _('abc').shuffle(); - } - { - var result_316; - result_316 = _(array).shuffle(); - result_316 = _(list).shuffle(); - result_316 = _(dictionary).shuffle(); - } - { - var result_317; - result_317 = _('abc').chain().shuffle(); - } - { - var result_318; - result_318 = _(array).chain().shuffle(); - result_318 = _(list).chain().shuffle(); - result_318 = _(dictionary).chain().shuffle(); - } -})(TestShuffle || (TestShuffle = {})); -// _.size -var TestSize; -(function (TestSize) { - var array; - var list; - var dictionary; - { - var result_319; - result_319 = _.size(array); - result_319 = _.size(list); - result_319 = _.size(dictionary); - result_319 = _.size(''); - result_319 = _(array).size(); - result_319 = _(list).size(); - result_319 = _(dictionary).size(); - result_319 = _('').size(); - } - { - var result_320; - result_320 = _(array).chain().size(); - result_320 = _(list).chain().size(); - result_320 = _(dictionary).chain().size(); - result_320 = _('').chain().size(); - } -})(TestSize || (TestSize = {})); -// _.some -var TestSome; -(function (TestSome) { - var array; - var list; - var dictionary; - var numericDictionary; - var listIterator; - var dictionaryIterator; - var numericDictionaryIterator; - { - var result_321; - result_321 = _.some(array); - result_321 = _.some(array, listIterator); - result_321 = _.some(array, listIterator, any); - result_321 = _.some(array, ''); - result_321 = _.some(array, { a: 42 }); - result_321 = _.some(list); - result_321 = _.some(list, listIterator); - result_321 = _.some(list, listIterator, any); - result_321 = _.some(list, ''); - result_321 = _.some(list, { a: 42 }); - result_321 = _.some(dictionary); - result_321 = _.some(dictionary, dictionaryIterator); - result_321 = _.some(dictionary, dictionaryIterator, any); - result_321 = _.some(dictionary, ''); - result_321 = _.some(dictionary, { a: 42 }); - result_321 = _.some(numericDictionary); - result_321 = _.some(numericDictionary, numericDictionaryIterator); - result_321 = _.some(numericDictionary, numericDictionaryIterator, any); - result_321 = _.some(numericDictionary, ''); - result_321 = _.some(numericDictionary, { a: 42 }); - result_321 = _(array).some(); - result_321 = _(array).some(listIterator); - result_321 = _(array).some(listIterator, any); - result_321 = _(array).some(''); - result_321 = _(array).some({ a: 42 }); - result_321 = _(list).some(); - result_321 = _(list).some(listIterator); - result_321 = _(list).some(listIterator, any); - result_321 = _(list).some(''); - result_321 = _(list).some({ a: 42 }); - result_321 = _(dictionary).some(); - result_321 = _(dictionary).some(dictionaryIterator); - result_321 = _(dictionary).some(dictionaryIterator, any); - result_321 = _(dictionary).some(''); - result_321 = _(dictionary).some({ a: 42 }); - result_321 = _(numericDictionary).some(); - result_321 = _(numericDictionary).some(numericDictionaryIterator); - result_321 = _(numericDictionary).some(numericDictionaryIterator, any); - result_321 = _(numericDictionary).some(''); - result_321 = _(numericDictionary).some({ a: 42 }); - } - { - var result_322; - result_322 = _(array).chain().some(); - result_322 = _(array).chain().some(listIterator); - result_322 = _(array).chain().some(listIterator, any); - result_322 = _(array).chain().some(''); - result_322 = _(array).chain().some({ a: 42 }); - result_322 = _(list).chain().some(); - result_322 = _(list).chain().some(listIterator); - result_322 = _(list).chain().some(listIterator, any); - result_322 = _(list).chain().some(''); - result_322 = _(list).chain().some({ a: 42 }); - result_322 = _(dictionary).chain().some(); - result_322 = _(dictionary).chain().some(dictionaryIterator); - result_322 = _(dictionary).chain().some(dictionaryIterator, any); - result_322 = _(dictionary).chain().some(''); - result_322 = _(dictionary).chain().some({ a: 42 }); - result_322 = _(numericDictionary).chain().some(); - result_322 = _(numericDictionary).chain().some(numericDictionaryIterator); - result_322 = _(numericDictionary).chain().some(numericDictionaryIterator, any); - result_322 = _(numericDictionary).chain().some(''); - result_322 = _(numericDictionary).chain().some({ a: 42 }); - } -})(TestSome || (TestSome = {})); -// _.sortBy -var TestSortBy; -(function (TestSortBy) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - { - var result_323; - result_323 = _.sortBy(array); - result_323 = _.sortBy(array, listIterator); - result_323 = _.sortBy(array, ''); - result_323 = _.sortBy(array, { a: 42 }); - result_323 = _.sortBy(list); - result_323 = _.sortBy(list, listIterator); - result_323 = _.sortBy(list, ''); - result_323 = _.sortBy(list, { a: 42 }); - result_323 = _.sortBy(dictionary); - result_323 = _.sortBy(dictionary, dictionaryIterator); - result_323 = _.sortBy(dictionary, ''); - result_323 = _.sortBy(dictionary, { a: 42 }); - } - { - var result_324; - result_324 = _(array).sortBy(); - result_324 = _(array).sortBy(listIterator); - result_324 = _(array).sortBy(''); - result_324 = _(array).sortBy({ a: 42 }); - result_324 = _(list).sortBy(); - result_324 = _(list).sortBy(listIterator); - result_324 = _(list).sortBy(''); - result_324 = _(list).sortBy({ a: 42 }); - result_324 = _(dictionary).sortBy(); - result_324 = _(dictionary).sortBy(dictionaryIterator); - result_324 = _(dictionary).sortBy(''); - result_324 = _(dictionary).sortBy({ a: 42 }); - } - { - var result_325; - result_325 = _(array).chain().sortBy(); - result_325 = _(array).chain().sortBy(listIterator); - result_325 = _(array).chain().sortBy(''); - result_325 = _(array).chain().sortBy({ a: 42 }); - result_325 = _(list).chain().sortBy(); - result_325 = _(list).chain().sortBy(listIterator); - result_325 = _(list).chain().sortBy(''); - result_325 = _(list).chain().sortBy({ a: 42 }); - result_325 = _(dictionary).chain().sortBy(); - result_325 = _(dictionary).chain().sortBy(dictionaryIterator); - result_325 = _(dictionary).chain().sortBy(''); - result_325 = _(dictionary).chain().sortBy({ a: 42 }); - } -})(TestSortBy || (TestSortBy = {})); -result = _.sortBy(stoogesAges, function (stooge) { return Math.sin(stooge.age); }, function (stooge) { return stooge.name.slice(1); }); -result = _.sortBy(stoogesAges, ['name', 'age']); -result = _.sortBy(stoogesAges, 'name', function (stooge) { return Math.sin(stooge.age); }); -result = _(foodsOrganic).sortBy('organic', function (food) { return food.name; }, { organic: true }).value(); -// _.orderBy -var TestorderBy; -(function (TestorderBy) { - var array; - var list; - var numericDictionary; - var dictionary; - var orders; - { - var iteratees; - var result_326; - result_326 = _.orderBy('acbd', iteratees); - result_326 = _.orderBy('acbd', iteratees, orders); - } - { - var iteratees; - var result_327; - result_327 = _.orderBy(array, iteratees); - result_327 = _.orderBy(array, iteratees, orders); - result_327 = _.orderBy(array, iteratees); - result_327 = _.orderBy(array, iteratees, orders); - result_327 = _.orderBy(list, iteratees); - result_327 = _.orderBy(list, iteratees, orders); - result_327 = _.orderBy(list, iteratees); - result_327 = _.orderBy(list, iteratees, orders); - result_327 = _.orderBy(numericDictionary, iteratees); - result_327 = _.orderBy(numericDictionary, iteratees, orders); - result_327 = _.orderBy(numericDictionary, iteratees); - result_327 = _.orderBy(numericDictionary, iteratees, orders); - result_327 = _.orderBy(dictionary, iteratees); - result_327 = _.orderBy(dictionary, iteratees, orders); - result_327 = _.orderBy(dictionary, iteratees); - result_327 = _.orderBy(dictionary, iteratees, orders); - } - { - var iteratees; - var result_328; - result_328 = _(array).orderBy(iteratees); - result_328 = _(array).orderBy(iteratees, orders); - result_328 = _(list).orderBy(iteratees); - result_328 = _(list).orderBy(iteratees, orders); - result_328 = _(list).orderBy(iteratees); - result_328 = _(list).orderBy(iteratees, orders); - result_328 = _(numericDictionary).orderBy(iteratees); - result_328 = _(numericDictionary).orderBy(iteratees, orders); - result_328 = _(numericDictionary).orderBy(iteratees); - result_328 = _(numericDictionary).orderBy(iteratees, orders); - result_328 = _(dictionary).orderBy(iteratees); - result_328 = _(dictionary).orderBy(iteratees, orders); - result_328 = _(dictionary).orderBy(iteratees); - result_328 = _(dictionary).orderBy(iteratees, orders); - } - { - var iteratees; - var result_329; - result_329 = _(array).chain().orderBy(iteratees); - result_329 = _(array).chain().orderBy(iteratees, orders); - result_329 = _(list).chain().orderBy(iteratees); - result_329 = _(list).chain().orderBy(iteratees, orders); - result_329 = _(list).chain().orderBy(iteratees); - result_329 = _(list).chain().orderBy(iteratees, orders); - result_329 = _(numericDictionary).chain().orderBy(iteratees); - result_329 = _(numericDictionary).chain().orderBy(iteratees, orders); - result_329 = _(numericDictionary).chain().orderBy(iteratees); - result_329 = _(numericDictionary).chain().orderBy(iteratees, orders); - result_329 = _(dictionary).chain().orderBy(iteratees); - result_329 = _(dictionary).chain().orderBy(iteratees, orders); - result_329 = _(dictionary).chain().orderBy(iteratees); - result_329 = _(dictionary).chain().orderBy(iteratees, orders); - } -})(TestorderBy || (TestorderBy = {})); -/******** - * Date * - ********/ -var TestNow; -(function (TestNow) { - { - var result_330; - result_330 = _.now(); - result_330 = _(42).now(); - result_330 = _([]).now(); - result_330 = _({}).now(); - } - { - var result_331; - result_331 = _(42).chain().now(); - result_331 = _([]).chain().now(); - result_331 = _({}).chain().now(); - } -})(TestNow || (TestNow = {})); -/************* - * Functions * - *************/ -// _.after -var TestAfter; -(function (TestAfter) { - var func; - { - var result_332; - _.after(42, func); - } - { - var result_333; - _(42).after(func); - } - { - var result_334; - _(42).chain().after(func); - } -})(TestAfter || (TestAfter = {})); -// _.ary -var TestAry; -(function (TestAry) { - var func; - { - var result_335; - result_335 = _.ary(func); - result_335 = _.ary(func, 2); - result_335 = _.ary(func); - result_335 = _.ary(func, 2); - } - { - var result_336; - result_336 = _(func).ary(); - result_336 = _(func).ary(2); - } - { - var result_337; - result_337 = _(func).chain().ary(); - result_337 = _(func).chain().ary(2); - } -})(TestAry || (TestAry = {})); -// _.before -var TestBefore; -(function (TestBefore) { - var func; - { - var result_338; - _.before(42, func); - } - { - var result_339; - _(42).before(func); - } - { - var result_340; - _(42).chain().before(func); - } -})(TestBefore || (TestBefore = {})); -// _.bind -var TestBind; -(function (TestBind) { - var func; - { - var result_341; - result_341 = _.bind(func, any); - result_341 = _.bind(func, any); - } - { - var result_342; - result_342 = _.bind(func, any, 42); - result_342 = _.bind(func, any, 42); - } - { - var result_343; - result_343 = _.bind(func, any, 42, ''); - result_343 = _.bind(func, any, 42, ''); - } - { - var result_344; - result_344 = _(func).bind(any); - } - { - var result_345; - result_345 = _(func).bind(any, 42); - } - { - var result_346; - result_346 = _(func).bind(any, 42, ''); - } - { - var result_347; - result_347 = _(func).chain().bind(any); - } - { - var result_348; - result_348 = _(func).chain().bind(any, 42); - } - { - var result_349; - result_349 = _(func).chain().bind(any, 42, ''); - } -})(TestBind || (TestBind = {})); -// _.bindAll -var TestBindAll; -(function (TestBindAll) { - var object; - { - var result_350; - result_350 = _.bindAll(object); - result_350 = _.bindAll(object, 'c'); - result_350 = _.bindAll(object, ['b'], 'c'); - result_350 = _.bindAll(object, 'a', ['b'], 'c'); - } - { - var result_351; - result_351 = _(object).bindAll(); - result_351 = _(object).bindAll('c'); - result_351 = _(object).bindAll(['b'], 'c'); - result_351 = _(object).bindAll('a', ['b'], 'c'); - } - { - var result_352; - result_352 = _(object).chain().bindAll(); - result_352 = _(object).chain().bindAll('c'); - result_352 = _(object).chain().bindAll(['b'], 'c'); - result_352 = _(object).chain().bindAll('a', ['b'], 'c'); - } -})(TestBindAll || (TestBindAll = {})); -// _.bindKey -var TestBindKey; -(function (TestBindKey) { - var object; - { - var result_353; - result_353 = _.bindKey(object, 'foo'); - result_353 = _.bindKey(object, 'foo'); - } - { - var result_354; - result_354 = _.bindKey(object, 'foo', 42); - result_354 = _.bindKey(object, 'foo', 42); - } - { - var result_355; - result_355 = _.bindKey(object, 'foo', 42, ''); - result_355 = _.bindKey(object, 'foo', 42, ''); - } - { - var result_356; - result_356 = _(object).bindKey('foo'); - } - { - var result_357; - result_357 = _(object).bindKey('foo', 42); - } - { - var result_358; - result_358 = _(object).bindKey('foo', 42, ''); - } - { - var result_359; - result_359 = _(object).chain().bindKey('foo'); - } - { - var result_360; - result_360 = _(object).chain().bindKey('foo', 42); - } - { - var result_361; - result_361 = _(object).chain().bindKey('foo', 42, ''); - } -})(TestBindKey || (TestBindKey = {})); -var createCallbackObj = { name: 'Joe' }; -result = _.createCallback('name'); -result = _.createCallback(createCallbackObj); -result = _('name').createCallback(); -result = _(createCallbackObj).createCallback(); -// _.curry -var testCurryFn = function (a, b, c) { return [a, b, c]; }; -var curryResult0; -var curryResult1; -var curryResult2; -curryResult0 = _.curry(testCurryFn)(1, 2, 3); -curryResult1 = _.curry(testCurryFn)(1, 2); -curryResult0 = _.curry(testCurryFn)(1, 2)(3); -curryResult0 = _.curry(testCurryFn)(1)(2)(3); -curryResult2 = _.curry(testCurryFn)(1); -curryResult1 = _.curry(testCurryFn)(1)(2); -curryResult0 = _.curry(testCurryFn)(1)(2)(3); -curryResult0 = _.curry(testCurryFn)(1)(2, 3); -curryResult0 = _(testCurryFn).curry().value()(1, 2, 3); -curryResult2 = _(testCurryFn).curry().value()(1); -var curryResult3; -var curryResult4; -var curryResult5; -var curryResult6; -curryResult3 = _.curry(testCurry2)("1", 2, true); -curryResult3 = _.curry(testCurry2)("1", 2)(true); -curryResult3 = _.curry(testCurry2)("1")(2, true); -curryResult3 = _.curry(testCurry2)("1")(2)(true); -curryResult4 = _.curry(testCurry2)("1", 2); -curryResult4 = _.curry(testCurry2)("1")(2); -curryResult5 = _.curry(testCurry2)("1"); -curryResult6 = _.curry(testCurry2); -// _.curryRight -var testCurryRightFn = function (a, b, c) { return [a, b, c]; }; -curryResult0 = _.curryRight(testCurryRightFn)(1, 2, 3); -curryResult2 = _.curryRight(testCurryRightFn)(1); -curryResult0 = _(testCurryRightFn).curryRight().value()(1, 2, 3); -curryResult2 = _(testCurryRightFn).curryRight().value()(1); -var curryResult7; -var curryResult8; -var curryResult9; -curryResult3 = _.curryRight(testCurry2)(true, 2, "1"); -curryResult3 = _.curryRight(testCurry2)(true, 2)("1"); -curryResult3 = _.curryRight(testCurry2)(true)(2, "1"); -curryResult3 = _.curryRight(testCurry2)(true)(2)("1"); -curryResult7 = _.curryRight(testCurry2)(true, 2); -curryResult7 = _.curryRight(testCurry2)(true)(2); -curryResult8 = _.curryRight(testCurry2)(true); -curryResult9 = _.curryRight(testCurry2); -// _.debounce -var TestDebounce; -(function (TestDebounce) { - var func; - var options; - { - var result_362; - result_362 = _.debounce(func); - result_362 = _.debounce(func, 42); - result_362 = _.debounce(func, 42, options); - } - { - var result_363; - result_363 = _(func).debounce(); - result_363 = _(func).debounce(42); - result_363 = _(func).debounce(42, options); - } - { - var result_364; - result_364 = _(func).chain().debounce(); - result_364 = _(func).chain().debounce(42); - result_364 = _(func).chain().debounce(42, options); - } -})(TestDebounce || (TestDebounce = {})); -// _.defer -var TestDefer; -(function (TestDefer) { - var func; - { - var result_365; - result_365 = _.defer(func); - result_365 = _.defer(func, any); - result_365 = _.defer(func, any, any); - result_365 = _.defer(func, any, any, any); - } - { - var result_366; - result_366 = _(func).defer(); - result_366 = _(func).defer(any); - result_366 = _(func).defer(any, any); - result_366 = _(func).defer(any, any, any); - } - { - var result_367; - result_367 = _(func).chain().defer(); - result_367 = _(func).chain().defer(any); - result_367 = _(func).chain().defer(any, any); - result_367 = _(func).chain().defer(any, any, any); - } -})(TestDefer || (TestDefer = {})); -// _.delay -var TestDelay; -(function (TestDelay) { - var func; - { - var result_368; - result_368 = _.delay(func, 1); - result_368 = _.delay(func, 1, 2); - result_368 = _.delay(func, 1, 2, ''); - } - { - var result_369; - result_369 = _(func).delay(1); - result_369 = _(func).delay(1, 2); - result_369 = _(func).delay(1, 2, ''); - } - { - var result_370; - result_370 = _(func).chain().delay(1); - result_370 = _(func).chain().delay(1, 2); - result_370 = _(func).chain().delay(1, 2, ''); - } -})(TestDelay || (TestDelay = {})); -// _.flip -var TestFlip; -(function (TestFlip) { - var func; - { - var result_371; - result_371 = _.flip(func); - } - { - var result_372; - result_372 = _(func).flip(); - } - { - var result_373; - result_373 = _(func).chain().flip(); - } -})(TestFlip || (TestFlip = {})); -// _.flow -var TestFlow; -(function (TestFlow) { - var Fn1; - var Fn2; - { - var result_374; - result_374 = _.flow(Fn1, Fn2); - result_374 = _.flow(Fn1, Fn1, Fn2); - result_374 = _.flow(Fn1, Fn1, Fn1, Fn2); - } - { - var result_375; - result_375 = _(Fn1).flow(Fn2); - result_375 = _(Fn1).flow(Fn1, Fn2); - result_375 = _(Fn1).flow(Fn1, Fn1, Fn2); - } - { - var result_376; - result_376 = _(Fn1).chain().flow(Fn2); - result_376 = _(Fn1).chain().flow(Fn1, Fn2); - result_376 = _(Fn1).chain().flow(Fn1, Fn1, Fn2); - } -})(TestFlow || (TestFlow = {})); -// _.flowRight -var TestFlowRight; -(function (TestFlowRight) { - var Fn1; - var Fn2; - { - var result_377; - result_377 = _.flowRight(Fn1, Fn2); - result_377 = _.flowRight(Fn1, Fn1, Fn2); - result_377 = _.flowRight(Fn1, Fn1, Fn1, Fn2); - } - { - var result_378; - result_378 = _(Fn1).flowRight(Fn2); - result_378 = _(Fn1).flowRight(Fn1, Fn2); - result_378 = _(Fn1).flowRight(Fn1, Fn1, Fn2); - } - { - var result_379; - result_379 = _(Fn1).chain().flowRight(Fn2); - result_379 = _(Fn1).chain().flowRight(Fn1, Fn2); - result_379 = _(Fn1).chain().flowRight(Fn1, Fn1, Fn2); - } -})(TestFlowRight || (TestFlowRight = {})); -// _.memoize -var testMemoizedFunction; -result = testMemoizedFunction.cache; -var testMemoizeFn; -var testMemoizeResolverFn; -result = _.memoize(testMemoizeFn); -result = _.memoize(testMemoizeFn, testMemoizeResolverFn); -result = (_(testMemoizeFn).memoize().value()); -result = (_(testMemoizeFn).memoize(testMemoizeResolverFn).value()); -// _.overArgs -var TestOverArgs; -(function (TestOverArgs) { - var func1; - var func2; - var transform1; - var transform2; - { - var result_380; - result_380 = _.overArgs(func1, transform1); - result_380 = _.overArgs(func1, [transform1]); - } - { - var result_381; - result_381 = _.overArgs(func2, transform1, transform2); - result_381 = _.overArgs(func2, [transform1, transform2]); - } - { - var result_382; - result_382 = _(func1).overArgs(transform1); - result_382 = _(func1).overArgs([transform1]); - } - { - var result_383; - result_383 = _(func2).overArgs(transform1, transform2); - result_383 = _(func2).overArgs([transform1, transform2]); - } - { - var result_384; - result_384 = _(func1).chain().overArgs(transform1); - result_384 = _(func1).chain().overArgs([transform1]); - } - { - var result_385; - result_385 = _(func2).chain().overArgs(transform1, transform2); - result_385 = _(func2).chain().overArgs([transform1, transform2]); - } -})(TestOverArgs || (TestOverArgs = {})); -// _.negate -var TestNegate; -(function (TestNegate) { - var predicate = function (a1, a2) { return a1 > a2; }; - { - var result_386; - result_386 = _.negate(predicate); - result_386 = _.negate(predicate); - } - { - var result_387; - result_387 = _(predicate).negate(); - result_387 = _(predicate).negate(); - } - { - var result_388; - result_388 = _(predicate).chain().negate(); - result_388 = _(predicate).chain().negate(); - } -})(TestNegate || (TestNegate = {})); -// _.once -var TestOnce; -(function (TestOnce) { - var func; - { - var result_389; - result_389 = _.once(func); - } - { - var result_390; - result_390 = _(func).once(); - } - { - var result_391; - result_391 = _(func).chain().once(); - } -})(TestOnce || (TestOnce = {})); -var greetPartial = function (greeting, name) { return greeting + ' ' + name; }; -var hi = _.partial(greetPartial, 'hi'); -hi('moe'); -var defaultsDeep = _.partialRight(_.merge, _.defaults); -var optionsPartialRight = { - 'variable': 'data', - 'imports': { 'jq': $ } -}; -defaultsDeep(optionsPartialRight, _.templateSettings); -//_.rearg -var testReargFn = function (a, b, c) { return [a, b, c]; }; -result = (_.rearg(testReargFn, 2, 0, 1))('b', 'c', 'a'); -result = (_.rearg(testReargFn, [2, 0, 1]))('b', 'c', 'a'); -result = (_(testReargFn).rearg(2, 0, 1).value())('b', 'c', 'a'); -result = (_(testReargFn).rearg([2, 0, 1]).value())('b', 'c', 'a'); -// _.rest -var TestRest; -(function (TestRest) { - var func; - { - var result_392; - result_392 = _.rest(func); - result_392 = _.rest(func, 1); - result_392 = _.rest(func); - result_392 = _.rest(func, 1); - } - { - var result_393; - result_393 = _(func).rest(); - result_393 = _(func).rest(1); - } - { - var result_394; - result_394 = _(func).chain().rest(); - result_394 = _(func).chain().rest(1); - } -})(TestRest || (TestRest = {})); -//_.spread -var TestSpread; -(function (TestSpread) { - var func; - { - var result_395; - result_395 = _.spread(func); - result_395 = _.spread(func); - } - { - var result_396; - result_396 = _(func).spread(); - } - { - var result_397; - result_397 = _(func).chain().spread(); - } -})(TestSpread || (TestSpread = {})); -// _.throttle -var TestThrottle; -(function (TestThrottle) { - var func; - var options; - { - var result_398; - result_398 = _.throttle(func); - result_398 = _.throttle(func, 42); - result_398 = _.throttle(func, 42, options); - } - { - var result_399; - result_399 = _(func).throttle(); - result_399 = _(func).throttle(42); - result_399 = _(func).throttle(42, options); - } - { - var result_400; - result_400 = _(func).chain().throttle(); - result_400 = _(func).chain().throttle(42); - result_400 = _(func).chain().throttle(42, options); - } -})(TestThrottle || (TestThrottle = {})); -// _.unary -var TestUnary; -(function (TestUnary) { - var func; - { - var result_401; - result_401 = _.unary(func); - } - { - var result_402; - result_402 = _(func).unary(); - } - { - var result_403; - result_403 = _(func).chain().unary(); - } -})(TestUnary || (TestUnary = {})); -// _.wrap -var TestWrap; -(function (TestWrap) { - { - var value; - var wrapper; - var result_404; - result_404 = _.wrap(value, wrapper); - result_404 = _.wrap(value, wrapper); - result_404 = _.wrap(value, wrapper); - } - { - var value; - var wrapper; - var result_405; - result_405 = _(value).wrap(wrapper); - result_405 = _(value).wrap(wrapper); - } - { - var value; - var wrapper; - var result_406; - result_406 = _(value).wrap(wrapper); - result_406 = _(value).wrap(wrapper); - } - { - var value; - var wrapper; - var result_407; - result_407 = _(value).wrap(wrapper); - result_407 = _(value).wrap(wrapper); - } - { - var value; - var wrapper; - var result_408; - result_408 = _(value).chain().wrap(wrapper); - result_408 = _(value).chain().wrap(wrapper); - } - { - var value; - var wrapper; - var result_409; - result_409 = _(value).chain().wrap(wrapper); - result_409 = _(value).chain().wrap(wrapper); - } - { - var value; - var wrapper; - var result_410; - result_410 = _(value).chain().wrap(wrapper); - result_410 = _(value).chain().wrap(wrapper); - } -})(TestWrap || (TestWrap = {})); -/******** - * Lang * - ********/ -// _.clone -{ - var result_411; - result_411 = _.clone(42); - result_411 = _(42).clone(); -} -{ - var result_412; - result_412 = _.clone([]); - result_412 = _([]).clone(); -} -{ - var result_413; - result_413 = _.clone({ a: { b: 2 } }); - result_413 = _({ a: { b: 2 } }).clone(); -} -// _.cloneDeep -{ - var result_414; - result_414 = _.cloneDeep(42); - result_414 = _(42).cloneDeep(); -} -{ - var result_415; - result_415 = _.cloneDeep([]); - result_415 = _([]).cloneDeep(); -} -{ - var result_416; - result_416 = _.cloneDeep({ a: { b: 2 } }); - result_416 = _({ a: { b: 2 } }).cloneDeep(); -} -var testCloneCustomizerFn; -{ - var result_417; - result_417 = _.clone(42, testCloneCustomizerFn); - result_417 = _(42).clone(testCloneCustomizerFn); -} -{ - var result_418; - result_418 = _.clone([], testCloneCustomizerFn); - result_418 = _([]).clone(testCloneCustomizerFn); -} -{ - var result_419; - result_419 = _.clone({ a: { b: 2 } }, testCloneCustomizerFn); - result_419 = _({ a: { b: 2 } }).clone(testCloneCustomizerFn); -} -var testCloneDeepCustomizerFn; -{ - var result_420; - result_420 = _.cloneDeep(42, testCloneDeepCustomizerFn); - result_420 = _(42).cloneDeep(testCloneDeepCustomizerFn); -} -{ - var result_421; - result_421 = _.cloneDeep([], testCloneDeepCustomizerFn); - result_421 = _([]).cloneDeep(testCloneDeepCustomizerFn); -} -{ - var result_422; - result_422 = _.cloneDeep({ a: { b: 2 } }, testCloneDeepCustomizerFn); - result_422 = _({ a: { b: 2 } }).cloneDeep(testCloneDeepCustomizerFn); -} -// _.eq -var TestEq; -(function (TestEq) { - var customizer; - { - var result_423; - result_423 = _.eq(any, any); - result_423 = _(any).eq(any); - } - { - var result_424; - result_424 = _(any).chain().eq(any); - } -})(TestEq || (TestEq = {})); -// _.gt -var TestGt; -(function (TestGt) { - { - var result_425; - result_425 = _.gt(any, any); - result_425 = _(1).gt(any); - result_425 = _([]).gt(any); - result_425 = _({}).gt(any); - } - { - var result_426; - result_426 = _(1).chain().gt(any); - result_426 = _([]).chain().gt(any); - result_426 = _({}).chain().gt(any); - } -})(TestGt || (TestGt = {})); -// _.gte -var TestGte; -(function (TestGte) { - { - var result_427; - result_427 = _.gte(any, any); - result_427 = _(1).gte(any); - result_427 = _([]).gte(any); - result_427 = _({}).gte(any); - } - { - var result_428; - result_428 = _(1).chain().gte(any); - result_428 = _([]).chain().gte(any); - result_428 = _({}).chain().gte(any); - } -})(TestGte || (TestGte = {})); -// _.isArguments -var TestisArguments; -(function (TestisArguments) { - { - var value; - if (_.isArguments(value)) { - var result_429 = value; - } - else { - var result_430 = value; - } - } - { - var result_431; - result_431 = _.isArguments(any); - result_431 = _(1).isArguments(); - result_431 = _([]).isArguments(); - result_431 = _({}).isArguments(); - } - { - var result_432; - result_432 = _(1).chain().isArguments(); - result_432 = _([]).chain().isArguments(); - result_432 = _({}).chain().isArguments(); - } -})(TestisArguments || (TestisArguments = {})); -// _.isArray -var TestIsArray; -(function (TestIsArray) { - { - var value; - if (_.isArray(value)) { - var result_433 = value; - } - else { - if (_.isArray(value)) { - var result_434 = value; - } - else { - var result_435 = value; - } - } - } - { - var result_436; - result_436 = _.isArray(any); - result_436 = _(1).isArray(); - result_436 = _([]).isArray(); - result_436 = _({}).isArray(); - } - { - var result_437; - result_437 = _(1).chain().isArray(); - result_437 = _([]).chain().isArray(); - result_437 = _({}).chain().isArray(); - } -})(TestIsArray || (TestIsArray = {})); -// _.isArrayLike -var TestIsArrayLike; -(function (TestIsArrayLike) { - { - var value; - if (_.isArrayLike(value)) { - var result_438 = value; - } - else { - if (_.isArrayLike(value)) { - var result_439 = value; - } - else { - var result_440 = value; - } - } - } - { - var result_441; - result_441 = _.isArrayLike(any); - result_441 = _(1).isArrayLike(); - result_441 = _([]).isArrayLike(); - result_441 = _({}).isArrayLike(); - } - { - var result_442; - result_442 = _(1).chain().isArrayLike(); - result_442 = _([]).chain().isArrayLike(); - result_442 = _({}).chain().isArrayLike(); - } -})(TestIsArrayLike || (TestIsArrayLike = {})); -// _.isArrayLikeObject -var TestIsArrayLikeObject; -(function (TestIsArrayLikeObject) { - { - var value; - if (_.isArrayLikeObject(value)) { - var result_443 = value; - } - else { - if (_.isArrayLikeObject(value)) { - var result_444 = value; - } - else { - var result_445 = value; - } - } - } - { - var result_446; - result_446 = _.isArrayLikeObject(any); - result_446 = _(1).isArrayLikeObject(); - result_446 = _([]).isArrayLikeObject(); - result_446 = _({}).isArrayLikeObject(); - } - { - var result_447; - result_447 = _(1).chain().isArrayLikeObject(); - result_447 = _([]).chain().isArrayLikeObject(); - result_447 = _({}).chain().isArrayLikeObject(); - } -})(TestIsArrayLikeObject || (TestIsArrayLikeObject = {})); -// _.isBoolean -var TestIsBoolean; -(function (TestIsBoolean) { - { - var value; - if (_.isBoolean(value)) { - var result_448 = value; - } - else { - var result_449 = value; - } - } - { - var result_450; - result_450 = _.isBoolean(any); - result_450 = _(1).isBoolean(); - result_450 = _([]).isBoolean(); - result_450 = _({}).isBoolean(); - } - { - var result_451; - result_451 = _(1).chain().isBoolean(); - result_451 = _([]).chain().isBoolean(); - result_451 = _({}).chain().isBoolean(); - } -})(TestIsBoolean || (TestIsBoolean = {})); -// _.isDate -var TestIsBoolean; -(function (TestIsBoolean) { - { - var value; - if (_.isDate(value)) { - var result_452 = value; - } - else { - var result_453 = value; - } - } - { - var result_454; - result_454 = _.isDate(any); - result_454 = _(42).isDate(); - result_454 = _([]).isDate(); - result_454 = _({}).isDate(); - } - { - var result_455; - result_455 = _(42).chain().isDate(); - result_455 = _([]).chain().isDate(); - result_455 = _({}).chain().isDate(); - } -})(TestIsBoolean || (TestIsBoolean = {})); -// _.isElement -var TestIsElement; -(function (TestIsElement) { - { - var result_456; - result_456 = _.isElement(any); - result_456 = _(42).isElement(); - result_456 = _([]).isElement(); - result_456 = _({}).isElement(); - } - { - var result_457; - result_457 = _(42).chain().isElement(); - result_457 = _([]).chain().isElement(); - result_457 = _({}).chain().isElement(); - } -})(TestIsElement || (TestIsElement = {})); -// _.isEmpty -result = _.isEmpty([1, 2, 3]); -result = _.isEmpty({}); -result = _.isEmpty(''); -result = _([1, 2, 3]).isEmpty(); -result = _({}).isEmpty(); -result = _('').isEmpty(); -// _.isEqual -var TestIsEqual; -(function (TestIsEqual) { - var customizer; - { - var result_458; - result_458 = _.isEqual(any, any); - result_458 = _(any).isEqual(any); - } - { - var result_459; - result_459 = _(any).chain().isEqual(any); - } -})(TestIsEqual || (TestIsEqual = {})); -// _.isEqualWith -var TestIsEqualWith; -(function (TestIsEqualWith) { - var customizer; - { - var result_460; - result_460 = _.isEqualWith(any, any, customizer); - result_460 = _(any).isEqualWith(any, customizer); - } - { - var result_461; - result_461 = _(any).chain().isEqualWith(any, customizer); - } -})(TestIsEqualWith || (TestIsEqualWith = {})); -// _.isError -var TestIsError; -(function (TestIsError) { - { - var value; - if (_.isError(value)) { - var result_462 = value; - } - else { - var result_463 = value; - } - } - { - var CustomError = (function (_super) { - __extends(CustomError, _super); - function CustomError() { - _super.apply(this, arguments); - } - return CustomError; - })(Error); - var value; - if (_.isError(value)) { - var result_464 = value; - } - else { - var result_465 = value; - } - } - { - var result_466; - result_466 = _.isError(any); - result_466 = _(1).isError(); - result_466 = _([]).isError(); - result_466 = _({}).isError(); - } - { - var result_467; - result_467 = _(1).chain().isError(); - result_467 = _([]).chain().isError(); - result_467 = _({}).chain().isError(); - } -})(TestIsError || (TestIsError = {})); -// _.isFinite -var TestIsFinite; -(function (TestIsFinite) { - { - var result_468; - result_468 = _.isFinite(any); - result_468 = _(1).isFinite(); - result_468 = _([]).isFinite(); - result_468 = _({}).isFinite(); - } - { - var result_469; - result_469 = _(1).chain().isFinite(); - result_469 = _([]).chain().isFinite(); - result_469 = _({}).chain().isFinite(); - } -})(TestIsFinite || (TestIsFinite = {})); -// _.isFunction -var TestIsFunction; -(function (TestIsFunction) { - { - var value; - if (_.isFunction(value)) { - var result_470 = value; - } - else { - var result_471 = value; - } - } - { - var result_472; - result_472 = _.isFunction(any); - result_472 = _(1).isFunction(); - result_472 = _([]).isFunction(); - result_472 = _({}).isFunction(); - } - { - var result_473; - result_473 = _(1).chain().isFunction(); - result_473 = _([]).chain().isFunction(); - result_473 = _({}).chain().isFunction(); - } -})(TestIsFunction || (TestIsFunction = {})); -// _.isInteger -var TestIsInteger; -(function (TestIsInteger) { - { - var result_474; - result_474 = _.isInteger(any); - result_474 = _(1).isInteger(); - result_474 = _([]).isInteger(); - result_474 = _({}).isInteger(); - } - { - var result_475; - result_475 = _(1).chain().isInteger(); - result_475 = _([]).chain().isInteger(); - result_475 = _({}).chain().isInteger(); - } -})(TestIsInteger || (TestIsInteger = {})); -// _.isLength -var TestIsLength; -(function (TestIsLength) { - { - var result_476; - result_476 = _.isLength(any); - result_476 = _(1).isLength(); - result_476 = _([]).isLength(); - result_476 = _({}).isLength(); - } - { - var result_477; - result_477 = _(1).chain().isLength(); - result_477 = _([]).chain().isLength(); - result_477 = _({}).chain().isLength(); - } -})(TestIsLength || (TestIsLength = {})); -// _.isMatch -var TestIsMatch; -(function (TestIsMatch) { - var testIsMatchCustiomizerFn; - var result; - result = _.isMatch({}, {}); - result = _({}).isMatch({}); -})(TestIsMatch || (TestIsMatch = {})); -// _.isMatchWith -var TestIsMatchWith; -(function (TestIsMatchWith) { - var testIsMatchCustiomizerFn; - var result; - result = _.isMatchWith({}, {}, testIsMatchCustiomizerFn); - result = _({}).isMatchWith({}, testIsMatchCustiomizerFn); -})(TestIsMatchWith || (TestIsMatchWith = {})); -// _.isNaN -var TestIsNaN; -(function (TestIsNaN) { - { - var result_478; - result_478 = _.isNaN(any); - result_478 = _(1).isNaN(); - result_478 = _([]).isNaN(); - result_478 = _({}).isNaN(); - } - { - var result_479; - result_479 = _(1).chain().isNaN(); - result_479 = _([]).chain().isNaN(); - result_479 = _({}).chain().isNaN(); - } -})(TestIsNaN || (TestIsNaN = {})); -// _.isNative -var TestIsNative; -(function (TestIsNative) { - { - var value; - if (_.isNative(value)) { - var result_480 = value; - } - else { - var result_481 = value; - } - } - { - var result_482; - result_482 = _.isNative(any); - result_482 = _(1).isNative(); - result_482 = _([]).isNative(); - result_482 = _({}).isNative(); - } - { - var result_483; - result_483 = _(1).chain().isNative(); - result_483 = _([]).chain().isNative(); - result_483 = _({}).chain().isNative(); - } -})(TestIsNative || (TestIsNative = {})); -// _.isNil -var TestIsNil; -(function (TestIsNil) { - { - var result_484; - result_484 = _.isNil(any); - result_484 = _(1).isNil(); - result_484 = _([]).isNil(); - result_484 = _({}).isNil(); - } - { - var result_485; - result_485 = _(1).chain().isNil(); - result_485 = _([]).chain().isNil(); - result_485 = _({}).chain().isNil(); - } -})(TestIsNil || (TestIsNil = {})); -// _.isNull -var TestIsNull; -(function (TestIsNull) { - { - var result_486; - result_486 = _.isNull(any); - result_486 = _(1).isNull(); - result_486 = _([]).isNull(); - result_486 = _({}).isNull(); - } - { - var result_487; - result_487 = _(1).chain().isNull(); - result_487 = _([]).chain().isNull(); - result_487 = _({}).chain().isNull(); - } -})(TestIsNull || (TestIsNull = {})); -// _.isNumber -var TestIsNumber; -(function (TestIsNumber) { - { - var value; - if (_.isNumber(value)) { - var result_488 = value; - } - else { - var result_489 = value; - } - } - { - var result_490; - result_490 = _.isNumber(any); - result_490 = _(1).isNumber(); - result_490 = _([]).isNumber(); - result_490 = _({}).isNumber(); - } - { - var result_491; - result_491 = _(1).chain().isNumber(); - result_491 = _([]).chain().isNumber(); - result_491 = _({}).chain().isNumber(); - } -})(TestIsNumber || (TestIsNumber = {})); -// _.isObject -var TestIsObject; -(function (TestIsObject) { - { - var result_492; - result_492 = _.isObject(any); - result_492 = _(1).isObject(); - result_492 = _([]).isObject(); - result_492 = _({}).isObject(); - } - { - var result_493; - result_493 = _(1).chain().isObject(); - result_493 = _([]).chain().isObject(); - result_493 = _({}).chain().isObject(); - } -})(TestIsObject || (TestIsObject = {})); -// _.isObjectLike -var TestIsObjectLike; -(function (TestIsObjectLike) { - { - var result_494; - result_494 = _.isObjectLike(any); - result_494 = _(1).isObjectLike(); - result_494 = _([]).isObjectLike(); - result_494 = _({}).isObjectLike(); - } - { - var result_495; - result_495 = _(1).chain().isObjectLike(); - result_495 = _([]).chain().isObjectLike(); - result_495 = _({}).chain().isObjectLike(); - } -})(TestIsObjectLike || (TestIsObjectLike = {})); -// _.isPlainObject -var TestIsPlainObject; -(function (TestIsPlainObject) { - { - var result_496; - result_496 = _.isPlainObject(any); - result_496 = _(1).isPlainObject(); - result_496 = _([]).isPlainObject(); - result_496 = _({}).isPlainObject(); - } - { - var result_497; - result_497 = _(1).chain().isPlainObject(); - result_497 = _([]).chain().isPlainObject(); - result_497 = _({}).chain().isPlainObject(); - } -})(TestIsPlainObject || (TestIsPlainObject = {})); -// _.isRegExp -var TestIsRegExp; -(function (TestIsRegExp) { - { - var value; - if (_.isRegExp(value)) { - var result_498 = value; - } - else { - var result_499 = value; - } - } - { - var result_500; - result_500 = _.isRegExp(any); - result_500 = _(1).isRegExp(); - result_500 = _([]).isRegExp(); - result_500 = _({}).isRegExp(); - } - { - var result_501; - result_501 = _(1).chain().isRegExp(); - result_501 = _([]).chain().isRegExp(); - result_501 = _({}).chain().isRegExp(); - } -})(TestIsRegExp || (TestIsRegExp = {})); -// _.isSafeInteger -var TestIsSafeInteger; -(function (TestIsSafeInteger) { - { - var result_502; - result_502 = _.isSafeInteger(any); - result_502 = _(1).isSafeInteger(); - result_502 = _([]).isSafeInteger(); - result_502 = _({}).isSafeInteger(); - } - { - var result_503; - result_503 = _(1).chain().isSafeInteger(); - result_503 = _([]).chain().isSafeInteger(); - result_503 = _({}).chain().isSafeInteger(); - } -})(TestIsSafeInteger || (TestIsSafeInteger = {})); -// _.isString -var TestIsString; -(function (TestIsString) { - { - var value; - if (_.isString(value)) { - var result_504 = value; - } - else { - var result_505 = value; - } - } - { - var result_506; - result_506 = _.isString(any); - result_506 = _(1).isString(); - result_506 = _([]).isString(); - result_506 = _({}).isString(); - } - { - var result_507; - result_507 = _(1).chain().isString(); - result_507 = _([]).chain().isString(); - result_507 = _({}).chain().isString(); - } -})(TestIsString || (TestIsString = {})); -// _.isSymbol -var TestIsSymbol; -(function (TestIsSymbol) { - { - var result_508; - result_508 = _.isSymbol(any); - result_508 = _(1).isSymbol(); - result_508 = _([]).isSymbol(); - result_508 = _({}).isSymbol(); - } - { - var result_509; - result_509 = _(1).chain().isSymbol(); - result_509 = _([]).chain().isSymbol(); - result_509 = _({}).chain().isSymbol(); - } -})(TestIsSymbol || (TestIsSymbol = {})); -// _.isTypedArray -var TestIsTypedArray; -(function (TestIsTypedArray) { - { - var result_510; - result_510 = _.isTypedArray([]); - result_510 = _([]).isTypedArray(); - } - { - var result_511; - result_511 = _([]).chain().isTypedArray(); - } -})(TestIsTypedArray || (TestIsTypedArray = {})); -// _.isUndefined -var TestIsUndefined; -(function (TestIsUndefined) { - { - var result_512; - result_512 = _.isUndefined(any); - result_512 = _(1).isUndefined(); - result_512 = _([]).isUndefined(); - result_512 = _({}).isUndefined(); - } - { - var result_513; - result_513 = _(1).chain().isUndefined(); - result_513 = _([]).chain().isUndefined(); - result_513 = _({}).chain().isUndefined(); - } -})(TestIsUndefined || (TestIsUndefined = {})); -// _.lt -var TestLt; -(function (TestLt) { - { - var result_514; - result_514 = _.lt(any, any); - result_514 = _(1).lt(any); - result_514 = _([]).lt(any); - result_514 = _({}).lt(any); - } - { - var result_515; - result_515 = _(1).chain().lt(any); - result_515 = _([]).chain().lt(any); - result_515 = _({}).chain().lt(any); - } -})(TestLt || (TestLt = {})); -// _.lte -var TestLte; -(function (TestLte) { - { - var result_516; - result_516 = _.lte(any, any); - result_516 = _(1).lte(any); - result_516 = _([]).lte(any); - result_516 = _({}).lte(any); - } - { - var result_517; - result_517 = _(1).chain().lte(any); - result_517 = _([]).chain().lte(any); - result_517 = _({}).chain().lte(any); - } -})(TestLte || (TestLte = {})); -// _.toArray -var TestToArray; -(function (TestToArray) { - var array; - var list; - var dictionary; - var numericDictionary; - { - var result_518; - result_518 = _.toArray(''); - result_518 = _.toArray(''); - } - { - var result_519; - result_519 = _.toArray(array); - result_519 = _.toArray(list); - result_519 = _.toArray(dictionary); - result_519 = _.toArray(numericDictionary); - result_519 = _.toArray(array); - result_519 = _.toArray(list); - result_519 = _.toArray(dictionary); - result_519 = _.toArray(numericDictionary); - } - { - var result_520; - result_520 = _.toArray(); - result_520 = _.toArray(42); - result_520 = _.toArray(true); - } - { - var result_521; - result_521 = _(array).toArray(); - result_521 = _(list).toArray(); - result_521 = _(dictionary).toArray(); - result_521 = _(numericDictionary).toArray(); - } - { - var result_522; - result_522 = _(array).chain().toArray(); - result_522 = _(list).chain().toArray(); - result_522 = _(dictionary).chain().toArray(); - result_522 = _(numericDictionary).chain().toArray(); - } -})(TestToArray || (TestToArray = {})); -// _.toPlainObject -var TestToPlainObject; -(function (TestToPlainObject) { - { - var result_523; - result_523 = _.toPlainObject(); - result_523 = _.toPlainObject(true); - result_523 = _.toPlainObject(1); - result_523 = _.toPlainObject('a'); - result_523 = _.toPlainObject([]); - result_523 = _.toPlainObject({}); - } - { - var result_524; - result_524 = _(true).toPlainObject(); - result_524 = _(1).toPlainObject(); - result_524 = _('a').toPlainObject(); - result_524 = _([1]).toPlainObject(); - result_524 = _([]).toPlainObject(); - result_524 = _({}).toPlainObject(); - } -})(TestToPlainObject || (TestToPlainObject = {})); -// _.toInteger -var TestToInteger; -(function (TestToInteger) { - { - var result_525; - result_525 = _.toInteger(true); - result_525 = _.toInteger(1); - result_525 = _.toInteger('a'); - result_525 = _.toInteger([]); - result_525 = _.toInteger({}); - } - { - var result_526; - result_526 = _(true).toInteger(); - result_526 = _(1).toInteger(); - result_526 = _('a').toInteger(); - result_526 = _([1]).toInteger(); - result_526 = _([]).toInteger(); - result_526 = _({}).toInteger(); - } -})(TestToInteger || (TestToInteger = {})); -// _.toLength -var TestToLength; -(function (TestToLength) { - { - var result_527; - result_527 = _.toLength(true); - result_527 = _.toLength(1); - result_527 = _.toLength('a'); - result_527 = _.toLength([]); - result_527 = _.toLength({}); - } - { - var result_528; - result_528 = _(true).toLength(); - result_528 = _(1).toLength(); - result_528 = _('a').toLength(); - result_528 = _([1]).toLength(); - result_528 = _([]).toLength(); - result_528 = _({}).toLength(); - } -})(TestToLength || (TestToLength = {})); -// _.toNumber -var TestToNumber; -(function (TestToNumber) { - { - var result_529; - result_529 = _.toNumber(true); - result_529 = _.toNumber(1); - result_529 = _.toNumber('a'); - result_529 = _.toNumber([]); - result_529 = _.toNumber({}); - } - { - var result_530; - result_530 = _(true).toNumber(); - result_530 = _(1).toNumber(); - result_530 = _('a').toNumber(); - result_530 = _([1]).toNumber(); - result_530 = _([]).toNumber(); - result_530 = _({}).toNumber(); - } -})(TestToNumber || (TestToNumber = {})); -// _.toSafeInteger -var TestToSafeInteger; -(function (TestToSafeInteger) { - { - var result_531; - result_531 = _.toSafeInteger(true); - result_531 = _.toSafeInteger(1); - result_531 = _.toSafeInteger('a'); - result_531 = _.toSafeInteger([]); - result_531 = _.toSafeInteger({}); - } - { - var result_532; - result_532 = _(true).toSafeInteger(); - result_532 = _(1).toSafeInteger(); - result_532 = _('a').toSafeInteger(); - result_532 = _([1]).toSafeInteger(); - result_532 = _([]).toSafeInteger(); - result_532 = _({}).toSafeInteger(); - } -})(TestToSafeInteger || (TestToSafeInteger = {})); -/******** - * Math * - ********/ -// _.add -var TestAdd; -(function (TestAdd) { - { - var result_533; - result_533 = _.add(1, 1); - result_533 = _(1).add(1); - } - { - var result_534; - result_534 = _(1).chain().add(1); - } -})(TestAdd || (TestAdd = {})); -// _.ceil -var TestCeil; -(function (TestCeil) { - { - var result_535; - result_535 = _.ceil(6.004); - result_535 = _.ceil(6.004, 2); - result_535 = _(6.004).ceil(); - result_535 = _(6.004).ceil(2); - } - { - var result_536; - result_536 = _(6.004).chain().ceil(); - result_536 = _(6.004).chain().ceil(2); - } -})(TestCeil || (TestCeil = {})); -// _.floor -var TestFloor; -(function (TestFloor) { - { - var result_537; - result_537 = _.floor(4.006); - result_537 = _.floor(0.046, 2); - result_537 = _.floor(4060, -2); - result_537 = _(4.006).floor(); - result_537 = _(0.046).floor(2); - result_537 = _(4060).floor(-2); - } - { - var result_538; - result_538 = _(4.006).chain().floor(); - result_538 = _(0.046).chain().floor(2); - result_538 = _(4060).chain().floor(-2); - } -})(TestFloor || (TestFloor = {})); -// _.max -var TestMax; -(function (TestMax) { - var array; - var list; - var result; - result = _.max(array); - result = _.max(list); - result = _(array).max(); - result = _(list).max(); -})(TestMax || (TestMax = {})); -// _.maxBy -var TestMaxBy; -(function (TestMaxBy) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - var result; - result = _.maxBy(array); - result = _.maxBy(array, listIterator); - result = _.maxBy(array, ''); - result = _.maxBy(array, { a: 42 }); - result = _.maxBy(list); - result = _.maxBy(list, listIterator); - result = _.maxBy(list, ''); - result = _.maxBy(list, { a: 42 }); - result = _.maxBy(dictionary); - result = _.maxBy(dictionary, dictionaryIterator); - result = _.maxBy(dictionary, ''); - result = _.maxBy(dictionary, { a: 42 }); - result = _(array).maxBy(); - result = _(array).maxBy(listIterator); - result = _(array).maxBy(''); - result = _(array).maxBy({ a: 42 }); - result = _(list).maxBy(); - result = _(list).maxBy(listIterator); - result = _(list).maxBy(''); - result = _(list).maxBy({ a: 42 }); - result = _(dictionary).maxBy(); - result = _(dictionary).maxBy(dictionaryIterator); - result = _(dictionary).maxBy(''); - result = _(dictionary).maxBy({ a: 42 }); -})(TestMaxBy || (TestMaxBy = {})); -// _.mean -var TestMean; -(function (TestMean) { - var array; - var result; - result = _.mean(array); - result = _(array).mean(); -})(TestMean || (TestMean = {})); -// _.min -var TestMin; -(function (TestMin) { - var array; - var list; - var result; - result = _.min(array); - result = _.min(list); - result = _(array).min(); - result = _(list).min(); -})(TestMin || (TestMin = {})); -// _.minBy -var TestMinBy; -(function (TestMinBy) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - var result; - result = _.minBy(array); - result = _.minBy(array, listIterator); - result = _.minBy(array, ''); - result = _.minBy(array, { a: 42 }); - result = _.minBy(list); - result = _.minBy(list, listIterator); - result = _.minBy(list, ''); - result = _.minBy(list, { a: 42 }); - result = _.minBy(dictionary); - result = _.minBy(dictionary, dictionaryIterator); - result = _.minBy(dictionary, ''); - result = _.minBy(dictionary, { a: 42 }); - result = _(array).minBy(); - result = _(array).minBy(listIterator); - result = _(array).minBy(''); - result = _(array).minBy({ a: 42 }); - result = _(list).minBy(); - result = _(list).minBy(listIterator); - result = _(list).minBy(''); - result = _(list).minBy({ a: 42 }); - result = _(dictionary).minBy(); - result = _(dictionary).minBy(dictionaryIterator); - result = _(dictionary).minBy(''); - result = _(dictionary).minBy({ a: 42 }); -})(TestMinBy || (TestMinBy = {})); -// _.round -var TestRound; -(function (TestRound) { - { - var result_539; - result_539 = _.round(4.006); - result_539 = _.round(4.006, 2); - result_539 = _(4.006).round(); - result_539 = _(4.006).round(2); - } - { - var result_540; - result_540 = _(4.006).chain().round(); - result_540 = _(4.006).chain().round(2); - } -})(TestRound || (TestRound = {})); -// _.sum -var TestSum; -(function (TestSum) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - { - var result_541; - result_541 = _.sum(array); - result_541 = _.sum(array); - result_541 = _.sum(list); - result_541 = _.sum(list); - result_541 = _(array).sum(); - result_541 = _(list).sum(); - result_541 = _(dictionary).sum(); - } - { - var result_542; - result_542 = _(array).chain().sum(); - result_542 = _(list).chain().sum(); - result_542 = _(dictionary).chain().sum(); - } -})(TestSum || (TestSum = {})); -// _.sumBy -var TestSumBy; -(function (TestSumBy) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - { - var result_543; - result_543 = _.sumBy(array); - result_543 = _.sumBy(array, listIterator); - result_543 = _.sumBy(array, ''); - result_543 = _.sumBy(list); - result_543 = _.sumBy(list, listIterator); - result_543 = _.sumBy(list, ''); - result_543 = _.sumBy(dictionary); - result_543 = _.sumBy(dictionary, dictionaryIterator); - result_543 = _.sumBy(dictionary, ''); - result_543 = _(array).sumBy(listIterator); - result_543 = _(array).sumBy(''); - result_543 = _(list).sumBy(listIterator); - result_543 = _(list).sumBy(''); - result_543 = _(dictionary).sumBy(dictionaryIterator); - result_543 = _(dictionary).sumBy(''); - } - { - var result_544; - result_544 = _(array).chain().sumBy(listIterator); - result_544 = _(array).chain().sumBy(''); - result_544 = _(list).chain().sumBy(listIterator); - result_544 = _(list).chain().sumBy(''); - result_544 = _(dictionary).chain().sumBy(dictionaryIterator); - result_544 = _(dictionary).chain().sumBy(''); - } -})(TestSumBy || (TestSumBy = {})); -/********** - * Number * - **********/ -// _.subtract -var subtract; -(function (subtract) { - { - var result_545; - result_545 = _.subtract(3, 2); - result_545 = _(3).subtract(2); - } - { - var result_546; - result_546 = _(3).chain().subtract(2); - } -})(subtract || (subtract = {})); -// _.clamp -var TestInClamp; -(function (TestInClamp) { - { - var result_547; - result_547 = _.clamp(3, 2, 4); - result_547 = _(3).clamp(2, 4); - } - { - var result_548; - result_548 = _(3).chain().clamp(2, 4); - } -})(TestInClamp || (TestInClamp = {})); -// _.inRange -var TestInRange; -(function (TestInRange) { - { - var result_549; - result_549 = _.inRange(3, 2, 4); - result_549 = _.inRange(4, 8); - result_549 = _(3).inRange(2, 4); - result_549 = _(4).inRange(8); - } - { - var result_550; - result_550 = _(3).chain().inRange(2, 4); - result_550 = _(4).chain().inRange(8); - } -})(TestInRange || (TestInRange = {})); -// _.random -var TestRandom; -(function (TestRandom) { - { - var result_551; - result_551 = _.random(); - result_551 = _.random(1); - result_551 = _.random(1, 2); - result_551 = _.random(1, 2, true); - result_551 = _.random(1, true); - result_551 = _.random(true); - result_551 = _(1).random(); - result_551 = _(1).random(2); - result_551 = _(1).random(2, true); - result_551 = _(1).random(true); - result_551 = _(true).random(); - } - { - var result_552; - result_552 = _(1).chain().random(); - result_552 = _(1).chain().random(2); - result_552 = _(1).chain().random(2, true); - result_552 = _(1).chain().random(true); - result_552 = _(true).chain().random(); - } -})(TestRandom || (TestRandom = {})); -/********** - * Object * - **********/ -// _.assign -var TestAssign; -(function (TestAssign) { - ; - ; - ; - ; - ; - ; - var obj; - var s1; - var s2; - var s3; - var s4; - var s5; - var customizer; - { - var result_553; - result_553 = _.assign(obj); - } - { - var result_554; - result_554 = _.assign(obj, s1); - } - { - var result_555; - result_555 = _.assign(obj, s1, s2); - } - { - var result_556; - result_556 = _.assign(obj, s1, s2, s3); - } - { - var result_557; - result_557 = _.assign(obj, s1, s2, s3, s4); - } - { - var result_558; - result_558 = _.assign(obj, s1, s2, s3, s4, s5); - } - { - var result_559; - result_559 = _(obj).assign(); - } - { - var result_560; - result_560 = _(obj).assign(s1); - } - { - var result_561; - result_561 = _(obj).assign(s1, s2); - } - { - var result_562; - result_562 = _(obj).assign(s1, s2, s3); - } - { - var result_563; - result_563 = _(obj).assign(s1, s2, s3, s4); - } - { - var result_564; - result_564 = _(obj).assign(s1, s2, s3, s4, s5); - } - { - var result_565; - result_565 = _(obj).chain().assign(); - } - { - var result_566; - result_566 = _(obj).chain().assign(s1); - } - { - var result_567; - result_567 = _(obj).chain().assign(s1, s2); - } - { - var result_568; - result_568 = _(obj).chain().assign(s1, s2, s3); - } - { - var result_569; - result_569 = _(obj).chain().assign(s1, s2, s3, s4); - } - { - var result_570; - result_570 = _(obj).chain().assign(s1, s2, s3, s4, s5); - } -})(TestAssign || (TestAssign = {})); -// _.assignWith -var TestAssignWith; -(function (TestAssignWith) { - ; - ; - ; - ; - ; - ; - var obj; - var s1; - var s2; - var s3; - var s4; - var s5; - var customizer; - { - var result_571; - result_571 = _.assignWith(obj); - } - { - var result_572; - result_572 = _.assignWith(obj, s1, customizer); - } - { - var result_573; - result_573 = _.assignWith(obj, s1, s2, customizer); - } - { - var result_574; - result_574 = _.assignWith(obj, s1, s2, s3, customizer); - } - { - var result_575; - result_575 = _.assignWith(obj, s1, s2, s3, s4, customizer); - } - { - var result_576; - result_576 = _.assignWith(obj, s1, s2, s3, s4, s5, customizer); - } - { - var result_577; - result_577 = _(obj).assignWith(); - } - { - var result_578; - result_578 = _(obj).assignWith(s1, customizer); - } - { - var result_579; - result_579 = _(obj).assignWith(s1, s2, customizer); - } - { - var result_580; - result_580 = _(obj).assignWith(s1, s2, s3, customizer); - } - { - var result_581; - result_581 = _(obj).assignWith(s1, s2, s3, s4, customizer); - } - { - var result_582; - result_582 = _(obj).assignWith(s1, s2, s3, s4, s5, customizer); - } - { - var result_583; - result_583 = _(obj).chain().assignWith(); - } - { - var result_584; - result_584 = _(obj).chain().assignWith(s1, customizer); - } - { - var result_585; - result_585 = _(obj).chain().assignWith(s1, s2, customizer); - } - { - var result_586; - result_586 = _(obj).chain().assignWith(s1, s2, s3, customizer); - } - { - var result_587; - result_587 = _(obj).chain().assignWith(s1, s2, s3, s4, customizer); - } - { - var result_588; - result_588 = _(obj).chain().assignWith(s1, s2, s3, s4, s5, customizer); - } -})(TestAssignWith || (TestAssignWith = {})); -// _.assignIn -var TestAssignIn; -(function (TestAssignIn) { - ; - ; - ; - ; - ; - ; - var obj; - var s1; - var s2; - var s3; - var s4; - var s5; - var customizer; - { - var result_589; - result_589 = _.assignIn(obj); - } - { - var result_590; - result_590 = _.assignIn(obj, s1); - } - { - var result_591; - result_591 = _.assignIn(obj, s1, s2); - } - { - var result_592; - result_592 = _.assignIn(obj, s1, s2, s3); - } - { - var result_593; - result_593 = _.assignIn(obj, s1, s2, s3, s4); - } - { - var result_594; - result_594 = _.assignIn(obj, s1, s2, s3, s4, s5); - } - { - var result_595; - result_595 = _(obj).assignIn(); - } - { - var result_596; - result_596 = _(obj).assignIn(s1); - } - { - var result_597; - result_597 = _(obj).assignIn(s1, s2); - } - { - var result_598; - result_598 = _(obj).assignIn(s1, s2, s3); - } - { - var result_599; - result_599 = _(obj).assignIn(s1, s2, s3, s4); - } - { - var result_600; - result_600 = _(obj).assignIn(s1, s2, s3, s4, s5); - } - { - var result_601; - result_601 = _(obj).chain().assignIn(); - } - { - var result_602; - result_602 = _(obj).chain().assignIn(s1); - } - { - var result_603; - result_603 = _(obj).chain().assignIn(s1, s2); - } - { - var result_604; - result_604 = _(obj).chain().assignIn(s1, s2, s3); - } - { - var result_605; - result_605 = _(obj).chain().assignIn(s1, s2, s3, s4); - } - { - var result_606; - result_606 = _(obj).chain().assignIn(s1, s2, s3, s4, s5); - } -})(TestAssignIn || (TestAssignIn = {})); -// _.assignInWith -var TestAssignInWith; -(function (TestAssignInWith) { - ; - ; - ; - ; - ; - ; - var obj; - var s1; - var s2; - var s3; - var s4; - var s5; - var customizer; - { - var result_607; - result_607 = _.assignInWith(obj); - } - { - var result_608; - result_608 = _.assignInWith(obj, s1, customizer); - } - { - var result_609; - result_609 = _.assignInWith(obj, s1, s2, customizer); - } - { - var result_610; - result_610 = _.assignInWith(obj, s1, s2, s3, customizer); - } - { - var result_611; - result_611 = _.assignInWith(obj, s1, s2, s3, s4, customizer); - } - { - var result_612; - result_612 = _.assignInWith(obj, s1, s2, s3, s4, s5, customizer); - } - { - var result_613; - result_613 = _(obj).assignInWith(); - } - { - var result_614; - result_614 = _(obj).assignInWith(s1, customizer); - } - { - var result_615; - result_615 = _(obj).assignInWith(s1, s2, customizer); - } - { - var result_616; - result_616 = _(obj).assignInWith(s1, s2, s3, customizer); - } - { - var result_617; - result_617 = _(obj).assignInWith(s1, s2, s3, s4, customizer); - } - { - var result_618; - result_618 = _(obj).assignInWith(s1, s2, s3, s4, s5, customizer); - } - { - var result_619; - result_619 = _(obj).chain().assignInWith(); - } - { - var result_620; - result_620 = _(obj).chain().assignInWith(s1, customizer); - } - { - var result_621; - result_621 = _(obj).chain().assignInWith(s1, s2, customizer); - } - { - var result_622; - result_622 = _(obj).chain().assignInWith(s1, s2, s3, customizer); - } - { - var result_623; - result_623 = _(obj).chain().assignInWith(s1, s2, s3, s4, customizer); - } - { - var result_624; - result_624 = _(obj).chain().assignInWith(s1, s2, s3, s4, s5, customizer); - } -})(TestAssignInWith || (TestAssignInWith = {})); -// _.create -var TestCreate; -(function (TestCreate) { - var prototype; - var properties; - { - var result_625; - result_625 = _.create(prototype, properties); - result_625 = _.create(prototype, properties); - } - { - var result_626; - result_626 = _(prototype).create(properties); - result_626 = _(prototype).create(properties); - } - { - var result_627; - result_627 = _(prototype).chain().create(properties); - result_627 = _(prototype).chain().create(properties); - } -})(TestCreate || (TestCreate = {})); -// _.defaults -var TestDefaults; -(function (TestDefaults) { - ; - ; - ; - ; - ; - ; - var obj; - var s1; - var s2; - var s3; - var s4; - var s5; - { - var result_628; - result_628 = _.defaults(obj); - } - { - var result_629; - result_629 = _.defaults(obj, s1); - } - { - var result_630; - result_630 = _.defaults(obj, s1, s2); - } - { - var result_631; - result_631 = _.defaults(obj, s1, s2, s3); - } - { - var result_632; - result_632 = _.defaults(obj, s1, s2, s3, s4); - } - { - var result_633; - result_633 = _.defaults(obj, s1, s2, s3, s4, s5); - } - { - var result_634; - result_634 = _(obj).defaults(); - } - { - var result_635; - result_635 = _(obj).defaults(s1); - } - { - var result_636; - result_636 = _(obj).defaults(s1, s2); - } - { - var result_637; - result_637 = _(obj).defaults(s1, s2, s3); - } - { - var result_638; - result_638 = _(obj).defaults(s1, s2, s3, s4); - } - { - var result_639; - result_639 = _(obj).defaults(s1, s2, s3, s4, s5); - } - { - var result_640; - result_640 = _(obj).chain().defaults(); - } - { - var result_641; - result_641 = _(obj).chain().defaults(s1); - } - { - var result_642; - result_642 = _(obj).chain().defaults(s1, s2); - } - { - var result_643; - result_643 = _(obj).chain().defaults(s1, s2, s3); - } - { - var result_644; - result_644 = _(obj).chain().defaults(s1, s2, s3, s4); - } - { - var result_645; - result_645 = _(obj).chain().defaults(s1, s2, s3, s4, s5); - } -})(TestDefaults || (TestDefaults = {})); -var TestDefaultsDeepObject = { 'user': { 'name': 'barney' } }; -var TestDefaultsDeepSource = { 'user': { 'name': 'fred', 'age': 36 } }; -result = _.defaultsDeep(TestDefaultsDeepObject, TestDefaultsDeepSource); -result = _(TestDefaultsDeepObject).defaultsDeep(TestDefaultsDeepSource).value(); -// _.extend -var TestExtend; -(function (TestExtend) { - var obj; - var s1; - var s2; - var s3; - var s4; - var s5; - var customizer; - { - var result_646; - result_646 = _.extend(obj); - } - { - var result_647; - result_647 = _.extend(obj, s1); - result_647 = _.extend(obj, s1, customizer); - result_647 = _.extend(obj, s1, customizer, any); - } - { - var result_648; - result_648 = _.extend(obj, s1, s2); - result_648 = _.extend(obj, s1, s2, customizer); - result_648 = _.extend(obj, s1, s2, customizer, any); - } - { - var result_649; - result_649 = _.extend(obj, s1, s2, s3); - result_649 = _.extend(obj, s1, s2, s3, customizer); - result_649 = _.extend(obj, s1, s2, s3, customizer, any); - } - { - var result_650; - result_650 = _.extend(obj, s1, s2, s3, s4); - result_650 = _.extend(obj, s1, s2, s3, s4, customizer); - result_650 = _.extend(obj, s1, s2, s3, s4, customizer, any); - } - { - var result_651; - result_651 = _.extend(obj, s1, s2, s3, s4, s5); - result_651 = _.extend(obj, s1, s2, s3, s4, s5, customizer); - result_651 = _.extend(obj, s1, s2, s3, s4, s5, customizer, any); - } - { - var result_652; - result_652 = _(obj).extend(); - } - { - var result_653; - result_653 = _(obj).extend(s1); - result_653 = _(obj).extend(s1, customizer); - result_653 = _(obj).extend(s1, customizer, any); - } - { - var result_654; - result_654 = _(obj).extend(s1, s2); - result_654 = _(obj).extend(s1, s2, customizer); - result_654 = _(obj).extend(s1, s2, customizer, any); - } - { - var result_655; - result_655 = _(obj).extend(s1, s2, s3); - result_655 = _(obj).extend(s1, s2, s3, customizer); - result_655 = _(obj).extend(s1, s2, s3, customizer, any); - } - { - var result_656; - result_656 = _(obj).extend(s1, s2, s3, s4); - result_656 = _(obj).extend(s1, s2, s3, s4, customizer); - result_656 = _(obj).extend(s1, s2, s3, s4, customizer, any); - } - { - var result_657; - result_657 = _(obj).extend(s1, s2, s3, s4, s5); - result_657 = _(obj).extend(s1, s2, s3, s4, s5, customizer); - result_657 = _(obj).extend(s1, s2, s3, s4, s5, customizer, any); - } - { - var result_658; - result_658 = _(obj).chain().extend(); - } - { - var result_659; - result_659 = _(obj).chain().extend(s1); - result_659 = _(obj).chain().extend(s1, customizer); - result_659 = _(obj).chain().extend(s1, customizer, any); - } - { - var result_660; - result_660 = _(obj).chain().extend(s1, s2); - result_660 = _(obj).chain().extend(s1, s2, customizer); - result_660 = _(obj).chain().extend(s1, s2, customizer, any); - } - { - var result_661; - result_661 = _(obj).chain().extend(s1, s2, s3); - result_661 = _(obj).chain().extend(s1, s2, s3, customizer); - result_661 = _(obj).chain().extend(s1, s2, s3, customizer, any); - } - { - var result_662; - result_662 = _(obj).chain().extend(s1, s2, s3, s4); - result_662 = _(obj).chain().extend(s1, s2, s3, s4, customizer); - result_662 = _(obj).chain().extend(s1, s2, s3, s4, customizer, any); - } - { - var result_663; - result_663 = _(obj).chain().extend(s1, s2, s3, s4, s5); - result_663 = _(obj).chain().extend(s1, s2, s3, s4, s5, customizer); - result_663 = _(obj).chain().extend(s1, s2, s3, s4, s5, customizer, any); - } -})(TestExtend || (TestExtend = {})); -// _.findKey -var TestFindKey; -(function (TestFindKey) { - { - var predicateFn; - var result_664; - result_664 = _.findKey({ a: '' }); - result_664 = _.findKey({ a: '' }, predicateFn); - result_664 = _.findKey({ a: '' }, predicateFn, any); - result_664 = _.findKey({ a: '' }, ''); - result_664 = _.findKey({ a: '' }, '', any); - result_664 = _.findKey({ a: '' }, { a: 42 }); - result_664 = _({ a: '' }).findKey(); - result_664 = _({ a: '' }).findKey(predicateFn); - result_664 = _({ a: '' }).findKey(predicateFn, any); - result_664 = _({ a: '' }).findKey(''); - result_664 = _({ a: '' }).findKey('', any); - result_664 = _({ a: '' }).findKey({ a: 42 }); - } - { - var predicateFn; - var result_665; - result_665 = _.findKey({ a: '' }, predicateFn); - result_665 = _.findKey({ a: '' }, predicateFn, any); - result_665 = _({ a: '' }).findKey(predicateFn); - result_665 = _({ a: '' }).findKey(predicateFn, any); - } - { - var predicateFn; - var result_666; - result_666 = _({ a: '' }).chain().findKey(); - result_666 = _({ a: '' }).chain().findKey(predicateFn); - result_666 = _({ a: '' }).chain().findKey(predicateFn, any); - result_666 = _({ a: '' }).chain().findKey(''); - result_666 = _({ a: '' }).chain().findKey('', any); - result_666 = _({ a: '' }).chain().findKey({ a: 42 }); - } - { - var predicateFn; - var result_667; - result_667 = _({ a: '' }).chain().findKey(predicateFn); - result_667 = _({ a: '' }).chain().findKey(predicateFn, any); - } -})(TestFindKey || (TestFindKey = {})); -// _.findLastKey -var TestFindLastKey; -(function (TestFindLastKey) { - { - var predicateFn; - var result_668; - result_668 = _.findLastKey({ a: '' }); - result_668 = _.findLastKey({ a: '' }, predicateFn); - result_668 = _.findLastKey({ a: '' }, predicateFn, any); - result_668 = _.findLastKey({ a: '' }, ''); - result_668 = _.findLastKey({ a: '' }, '', any); - result_668 = _.findLastKey({ a: '' }, { a: 42 }); - result_668 = _({ a: '' }).findLastKey(); - result_668 = _({ a: '' }).findLastKey(predicateFn); - result_668 = _({ a: '' }).findLastKey(predicateFn, any); - result_668 = _({ a: '' }).findLastKey(''); - result_668 = _({ a: '' }).findLastKey('', any); - result_668 = _({ a: '' }).findLastKey({ a: 42 }); - } - { - var predicateFn; - var result_669; - result_669 = _.findLastKey({ a: '' }, predicateFn); - result_669 = _.findLastKey({ a: '' }, predicateFn, any); - result_669 = _({ a: '' }).findLastKey(predicateFn); - result_669 = _({ a: '' }).findLastKey(predicateFn, any); - } - { - var predicateFn; - var result_670; - result_670 = _({ a: '' }).chain().findLastKey(); - result_670 = _({ a: '' }).chain().findLastKey(predicateFn); - result_670 = _({ a: '' }).chain().findLastKey(predicateFn, any); - result_670 = _({ a: '' }).chain().findLastKey(''); - result_670 = _({ a: '' }).chain().findLastKey('', any); - result_670 = _({ a: '' }).chain().findLastKey({ a: 42 }); - } - { - var predicateFn; - var result_671; - result_671 = _({ a: '' }).chain().findLastKey(predicateFn); - result_671 = _({ a: '' }).chain().findLastKey(predicateFn, any); - } -})(TestFindLastKey || (TestFindLastKey = {})); -// _.forIn -var TestForIn; -(function (TestForIn) { - var dictionary; - var dictionaryIterator; - var object; - var objectIterator; - { - var result_672; - result_672 = _.forIn(dictionary); - result_672 = _.forIn(dictionary, dictionaryIterator); - result_672 = _.forIn(dictionary, dictionaryIterator, any); - } - { - var result_673; - result_673 = _.forIn(object); - result_673 = _.forIn(object, objectIterator); - result_673 = _.forIn(object, objectIterator, any); - } - { - var result_674; - result_674 = _(dictionary).forIn(); - result_674 = _(dictionary).forIn(dictionaryIterator); - result_674 = _(dictionary).forIn(dictionaryIterator, any); - } - { - var result_675; - result_675 = _(dictionary).chain().forIn(); - result_675 = _(dictionary).chain().forIn(dictionaryIterator); - result_675 = _(dictionary).chain().forIn(dictionaryIterator, any); - } -})(TestForIn || (TestForIn = {})); -// _.forInRight -var TestForInRight; -(function (TestForInRight) { - var dictionary; - var dictionaryIterator; - var object; - var objectIterator; - { - var result_676; - result_676 = _.forInRight(dictionary); - result_676 = _.forInRight(dictionary, dictionaryIterator); - result_676 = _.forInRight(dictionary, dictionaryIterator, any); - } - { - var result_677; - result_677 = _.forInRight(object); - result_677 = _.forInRight(object, objectIterator); - result_677 = _.forInRight(object, objectIterator, any); - } - { - var result_678; - result_678 = _(dictionary).forInRight(); - result_678 = _(dictionary).forInRight(dictionaryIterator); - result_678 = _(dictionary).forInRight(dictionaryIterator, any); - } - { - var result_679; - result_679 = _(dictionary).chain().forInRight(); - result_679 = _(dictionary).chain().forInRight(dictionaryIterator); - result_679 = _(dictionary).chain().forInRight(dictionaryIterator, any); - } -})(TestForInRight || (TestForInRight = {})); -// _.forOwn -var TestForOwn; -(function (TestForOwn) { - var dictionary; - var dictionaryIterator; - var object; - var objectIterator; - { - var result_680; - result_680 = _.forOwn(dictionary); - result_680 = _.forOwn(dictionary, dictionaryIterator); - result_680 = _.forOwn(dictionary, dictionaryIterator, any); - } - { - var result_681; - result_681 = _.forOwn(object); - result_681 = _.forOwn(object, objectIterator); - result_681 = _.forOwn(object, objectIterator, any); - } - { - var result_682; - result_682 = _(dictionary).forOwn(); - result_682 = _(dictionary).forOwn(dictionaryIterator); - result_682 = _(dictionary).forOwn(dictionaryIterator, any); - } - { - var result_683; - result_683 = _(dictionary).chain().forOwn(); - result_683 = _(dictionary).chain().forOwn(dictionaryIterator); - result_683 = _(dictionary).chain().forOwn(dictionaryIterator, any); - } -})(TestForOwn || (TestForOwn = {})); -// _.forOwnRight -var TestForOwnRight; -(function (TestForOwnRight) { - var dictionary; - var dictionaryIterator; - var object; - var objectIterator; - { - var result_684; - result_684 = _.forOwnRight(dictionary); - result_684 = _.forOwnRight(dictionary, dictionaryIterator); - result_684 = _.forOwnRight(dictionary, dictionaryIterator, any); - } - { - var result_685; - result_685 = _.forOwnRight(object); - result_685 = _.forOwnRight(object, objectIterator); - result_685 = _.forOwnRight(object, objectIterator, any); - } - { - var result_686; - result_686 = _(dictionary).forOwnRight(); - result_686 = _(dictionary).forOwnRight(dictionaryIterator); - result_686 = _(dictionary).forOwnRight(dictionaryIterator, any); - } - { - var result_687; - result_687 = _(dictionary).chain().forOwnRight(); - result_687 = _(dictionary).chain().forOwnRight(dictionaryIterator); - result_687 = _(dictionary).chain().forOwnRight(dictionaryIterator, any); - } -})(TestForOwnRight || (TestForOwnRight = {})); -// _.functions -var TestFunctions; -(function (TestFunctions) { - var object; - { - var result_688; - result_688 = _.functions(object); - } - { - var result_689; - result_689 = _(object).functions(); - } - { - var result_690; - result_690 = _(object).chain().functions(); - } -})(TestFunctions || (TestFunctions = {})); -// _.functionsIn -var TestFunctionsIn; -(function (TestFunctionsIn) { - var object; - { - var result_691; - result_691 = _.functionsIn(object); - } - { - var result_692; - result_692 = _(object).functionsIn(); - } - { - var result_693; - result_693 = _(object).chain().functionsIn(); - } -})(TestFunctionsIn || (TestFunctionsIn = {})); -// _.get -result = _.get({ 'a': [{ 'b': { 'c': 3 } }] }, 'a[0].b.c'); -{ - var result_694; - result_694 = _.get({}, ''); - result_694 = _.get({}, 42); - result_694 = _.get({}, true); - result_694 = _.get({}, ['', 42, true]); - result_694 = _({}).get(''); - result_694 = _({}).get(42); - result_694 = _({}).get(true); - result_694 = _({}).get(['', 42, true]); -} -// _.has -var TestHas; -(function (TestHas) { - var object; - { - var result_695; - result_695 = _.has(object, ''); - result_695 = _.has(object, 42); - result_695 = _.has(object, true); - result_695 = _.has(object, ['', 42, true]); - result_695 = _(object).has(''); - result_695 = _(object).has(42); - result_695 = _(object).has(true); - result_695 = _(object).has(['', 42, true]); - } - { - var result_696; - result_696 = _(object).chain().has(''); - result_696 = _(object).chain().has(42); - result_696 = _(object).chain().has(true); - result_696 = _(object).chain().has(['', 42, true]); - } -})(TestHas || (TestHas = {})); -// _.hasIn -var TestHasIn; -(function (TestHasIn) { - var object; - { - var result_697; - result_697 = _.hasIn(object, ''); - result_697 = _.hasIn(object, 42); - result_697 = _.hasIn(object, true); - result_697 = _.hasIn(object, ['', 42, true]); - result_697 = _(object).hasIn(''); - result_697 = _(object).hasIn(42); - result_697 = _(object).hasIn(true); - result_697 = _(object).hasIn(['', 42, true]); - } - { - var result_698; - result_698 = _(object).chain().hasIn(''); - result_698 = _(object).chain().hasIn(42); - result_698 = _(object).chain().hasIn(true); - result_698 = _(object).chain().hasIn(['', 42, true]); - } -})(TestHasIn || (TestHasIn = {})); -// _.invert -var TestInvert; -(function (TestInvert) { - { - var result_699; - result_699 = _.invert({}); - result_699 = _.invert({}, true); - result_699 = _.invert({}); - result_699 = _.invert({}, true); - } - { - var result_700; - result_700 = _({}).invert(); - result_700 = _({}).invert(true); - } - { - var result_701; - result_701 = _({}).chain().invert(); - result_701 = _({}).chain().invert(true); - } -})(TestInvert || (TestInvert = {})); -// _.keys -var TestKeys; -(function (TestKeys) { - var object; - { - var result_702; - result_702 = _.keys(object); - } - { - var result_703; - result_703 = _(object).keys(); - } - { - var result_704; - result_704 = _(object).chain().keys(); - } -})(TestKeys || (TestKeys = {})); -// _.keysIn -var TestKeysIn; -(function (TestKeysIn) { - var object; - { - var result_705; - result_705 = _.keysIn(object); - } - { - var result_706; - result_706 = _(object).keysIn(); - } - { - var result_707; - result_707 = _(object).chain().keysIn(); - } -})(TestKeysIn || (TestKeysIn = {})); -// _.mapKeys -var TestMapKeys; -(function (TestMapKeys) { - var array; - var list; - var dictionary; - var listIterator; - var dictionaryIterator; - { - var result_708; - result_708 = _.mapKeys(array); - result_708 = _.mapKeys(array, listIterator); - result_708 = _.mapKeys(array, listIterator, any); - result_708 = _.mapKeys(array, ''); - result_708 = _.mapKeys(array, '', any); - result_708 = _.mapKeys(array, {}); - result_708 = _.mapKeys(list); - result_708 = _.mapKeys(list, listIterator); - result_708 = _.mapKeys(list, listIterator, any); - result_708 = _.mapKeys(list, ''); - result_708 = _.mapKeys(list, '', any); - result_708 = _.mapKeys(list, {}); - result_708 = _.mapKeys(dictionary); - result_708 = _.mapKeys(dictionary, dictionaryIterator); - result_708 = _.mapKeys(dictionary, dictionaryIterator, any); - result_708 = _.mapKeys(dictionary, ''); - result_708 = _.mapKeys(dictionary, '', any); - result_708 = _.mapKeys(dictionary, {}); - } - { - var result_709; - result_709 = _(array).mapKeys(); - result_709 = _(array).mapKeys(listIterator); - result_709 = _(array).mapKeys(listIterator, any); - result_709 = _(array).mapKeys(''); - result_709 = _(array).mapKeys('', any); - result_709 = _(array).mapKeys({}); - result_709 = _(list).mapKeys(); - result_709 = _(list).mapKeys(listIterator); - result_709 = _(list).mapKeys(listIterator, any); - result_709 = _(list).mapKeys(''); - result_709 = _(list).mapKeys('', any); - result_709 = _(list).mapKeys({}); - result_709 = _(dictionary).mapKeys(); - result_709 = _(dictionary).mapKeys(dictionaryIterator); - result_709 = _(dictionary).mapKeys(dictionaryIterator, any); - result_709 = _(dictionary).mapKeys(''); - result_709 = _(dictionary).mapKeys('', any); - result_709 = _(dictionary).mapKeys({}); - } - { - var result_710; - result_710 = _(array).chain().mapKeys(); - result_710 = _(array).chain().mapKeys(listIterator); - result_710 = _(array).chain().mapKeys(listIterator, any); - result_710 = _(array).chain().mapKeys(''); - result_710 = _(array).chain().mapKeys('', any); - result_710 = _(array).chain().mapKeys({}); - result_710 = _(list).chain().mapKeys(); - result_710 = _(list).chain().mapKeys(listIterator); - result_710 = _(list).chain().mapKeys(listIterator, any); - result_710 = _(list).chain().mapKeys(''); - result_710 = _(list).chain().mapKeys('', any); - result_710 = _(list).chain().mapKeys({}); - result_710 = _(dictionary).chain().mapKeys(); - result_710 = _(dictionary).chain().mapKeys(dictionaryIterator); - result_710 = _(dictionary).chain().mapKeys(dictionaryIterator, any); - result_710 = _(dictionary).chain().mapKeys(''); - result_710 = _(dictionary).chain().mapKeys('', any); - result_710 = _(dictionary).chain().mapKeys({}); - } -})(TestMapKeys || (TestMapKeys = {})); -// _.merge -var TestMerge; -(function (TestMerge) { - var initialValue = { a: 1 }; - var mergingValue = { b: "hi" }; - var result; - // Test for basic merging - result = _.merge(initialValue, mergingValue); - result = _.merge(initialValue, {}, mergingValue); - result = _.merge(initialValue, {}, {}, mergingValue); - result = _.merge(initialValue, {}, {}, {}, mergingValue); - // Once we get to the varargs version, you have to specify the result explicitly - result = _.merge(initialValue, {}, {}, {}, {}, mergingValue); - var complicatedResult = _.merge({ a: 1 }, { b: "string" }, { c: {} }, { d: [1] }, { e: true }); - var overriddenResult = _.merge({ a: 1 }, { a: "string" }, { a: {} }, { a: [1] }, { a: true }); - // Tests for basic chaining with merge - result = _(initialValue).merge(mergingValue).value(); - result = _(initialValue).merge({}, mergingValue).value(); - result = _(initialValue).merge({}, {}, mergingValue).value(); - result = _(initialValue).merge({}, {}, {}, mergingValue).value(); - // Once we get to the varargs version, you have to specify the result explicitly - result = _(initialValue).merge({}, {}, {}, {}, mergingValue).value(); - // Test complex multiple combinations with chaining - var complicatedResult = _({ a: 1 }).merge({ b: "string" }, { c: {} }, { d: [1] }, { e: true }).value(); - // Test for type overriding with chaining - var overriddenResult = _({ a: 1 }).merge({ a: "string" }, { a: {} }, { a: [1] }, { a: true }).value(); - { - var result_711; - } - { - var result_712; - } - { - var result_713; - } -})(TestMerge || (TestMerge = {})); -// _.mergeWith -var TestMergeWith; -(function (TestMergeWith) { - var initialValue = { a: 1 }; - var mergingValue = { b: "hi" }; - var result; - var customizer; - // Test for basic merging - result = _.mergeWith(initialValue, mergingValue, customizer); - result = _.mergeWith(initialValue, {}, mergingValue, customizer); - result = _.mergeWith(initialValue, {}, {}, mergingValue, customizer); - result = _.mergeWith(initialValue, {}, {}, {}, mergingValue, customizer); - // Once we get to the varargs version, you have to specify the result explicitl - result = _.mergeWith(initialValue, {}, {}, {}, {}, mergingValue, customizer); - // Tests for basic chaining with mergeWith - result = _(initialValue).mergeWith(mergingValue, customizer).value(); - result = _(initialValue).mergeWith({}, mergingValue, customizer).value(); - result = _(initialValue).mergeWith({}, {}, mergingValue, customizer).value(); - result = _(initialValue).mergeWith({}, {}, {}, mergingValue, customizer).value(); - // Once we get to the varargs version, you have to specify the result explicitl - result = _(initialValue).mergeWith({}, {}, {}, {}, mergingValue, customizer).value(); -})(TestMergeWith || (TestMergeWith = {})); -// _.omit -var TestOmit; -(function (TestOmit) { - var predicate; - { - var result_714; - result_714 = _.omit({}, 'a'); - result_714 = _.omit({}, 0, 'a'); - result_714 = _.omit({}, true, 0, 'a'); - result_714 = _.omit({}, ['b', 1, false], true, 0, 'a'); - } - { - var result_715; - result_715 = _({}).omit('a'); - result_715 = _({}).omit(0, 'a'); - result_715 = _({}).omit(true, 0, 'a'); - result_715 = _({}).omit(['b', 1, false], true, 0, 'a'); - } - { - var result_716; - result_716 = _({}).chain().omit('a'); - result_716 = _({}).chain().omit(0, 'a'); - result_716 = _({}).chain().omit(true, 0, 'a'); - result_716 = _({}).chain().omit(['b', 1, false], true, 0, 'a'); - } -})(TestOmit || (TestOmit = {})); -// _.omitBy -var TestOmitBy; -(function (TestOmitBy) { - var predicate; - { - var result_717; - result_717 = _.omitBy({}, predicate); - } - { - var result_718; - result_718 = _({}).omitBy(predicate); - } - { - var result_719; - result_719 = _({}).chain().omitBy(predicate); - } -})(TestOmitBy || (TestOmitBy = {})); -// _.toPairs -var TestToPairs; -(function (TestToPairs) { - var object; - { - var result_720; - result_720 = _.toPairs(object); - } - { - var result_721; - result_721 = _.toPairs(object); - } - { - var result_722; - result_722 = _(object).toPairs(); - } - { - var result_723; - result_723 = _(object).toPairs(); - } - { - var result_724; - result_724 = _(object).chain().toPairs(); - } - { - var result_725; - result_725 = _(object).chain().toPairs(); - } -})(TestToPairs || (TestToPairs = {})); -// _.pick -var TestPick; -(function (TestPick) { - var predicate; - { - var result_726; - result_726 = _.pick({}, 'a'); - result_726 = _.pick({}, 0, 'a'); - result_726 = _.pick({}, true, 0, 'a'); - result_726 = _.pick({}, ['b', 1, false], true, 0, 'a'); - } - { - var result_727; - result_727 = _({}).pick('a'); - result_727 = _({}).pick(0, 'a'); - result_727 = _({}).pick(true, 0, 'a'); - result_727 = _({}).pick(['b', 1, false], true, 0, 'a'); - } - { - var result_728; - result_728 = _({}).chain().pick('a'); - result_728 = _({}).chain().pick(0, 'a'); - result_728 = _({}).chain().pick(true, 0, 'a'); - result_728 = _({}).chain().pick(['b', 1, false], true, 0, 'a'); - } -})(TestPick || (TestPick = {})); -// _.pickBy -var TestPickBy; -(function (TestPickBy) { - var predicate; - { - var result_729; - result_729 = _.pickBy({}, predicate); - } - { - var result_730; - result_730 = _({}).pickBy(predicate); - } - { - var result_731; - result_731 = _({}).chain().pickBy(predicate); - } -})(TestPickBy || (TestPickBy = {})); -// _.result -{ - var testResultPath; - var testResultDefaultValue; - var result_732; - result_732 = _.result({}, testResultPath); - result_732 = _.result({}, testResultPath, testResultDefaultValue); - result_732 = _({}).result(testResultPath); - result_732 = _({}).result(testResultPath, testResultDefaultValue); -} -// _.set -var TestSet; -(function (TestSet) { - var object; - var value = { a: 1, b: '', c: true }; - { - var result_733; - result_733 = _.set(object, '', any); - result_733 = _.set(object, ['a', 'b', 1], any); - result_733 = _.set(object, '', value); - result_733 = _.set(object, ['a', 'b', 1], value); - } - { - var result_734; - result_734 = _(object).set('', any); - result_734 = _(object).set(['a', 'b', 1], any); - result_734 = _(object).set('', value); - result_734 = _(object).set(['a', 'b', 1], value); - } - { - var result_735; - result_735 = _(object).chain().set('', any); - result_735 = _(object).chain().set(['a', 'b', 1], any); - result_735 = _(object).chain().set('', value); - result_735 = _(object).chain().set(['a', 'b', 1], value); - } -})(TestSet || (TestSet = {})); -// _.transform -var TestTransform; -(function (TestTransform) { - var array; - var dictionary; - { - var iterator; - var accumulator; - var result_736; - result_736 = _.transform(array); - result_736 = _.transform(array, iterator); - result_736 = _.transform(array, iterator, accumulator); - result_736 = _.transform(array, iterator, accumulator, any); - result_736 = _(array).transform().value(); - result_736 = _(array).transform(iterator).value(); - result_736 = _(array).transform(iterator, accumulator).value(); - result_736 = _(array).transform(iterator, accumulator, any).value(); - } - { - var iterator; - var accumulator; - var result_737; - result_737 = _.transform(array, iterator); - result_737 = _.transform(array, iterator, accumulator); - result_737 = _.transform(array, iterator, accumulator, any); - result_737 = _(array).transform(iterator).value(); - result_737 = _(array).transform(iterator, accumulator).value(); - result_737 = _(array).transform(iterator, accumulator, any).value(); - } - { - var iterator; - var accumulator; - var result_738; - result_738 = _.transform(dictionary); - result_738 = _.transform(dictionary, iterator); - result_738 = _.transform(dictionary, iterator, accumulator); - result_738 = _.transform(dictionary, iterator, accumulator, any); - result_738 = _(dictionary).transform().value(); - result_738 = _(dictionary).transform(iterator).value(); - result_738 = _(dictionary).transform(iterator, accumulator).value(); - result_738 = _(dictionary).transform(iterator, accumulator, any).value(); - } - { - var iterator; - var accumulator; - var result_739; - result_739 = _.transform(dictionary, iterator); - result_739 = _.transform(dictionary, iterator, accumulator); - result_739 = _.transform(dictionary, iterator, accumulator, any); - result_739 = _(dictionary).transform(iterator).value(); - result_739 = _(dictionary).transform(iterator, accumulator).value(); - result_739 = _(dictionary).transform(iterator, accumulator, any).value(); - } -})(TestTransform || (TestTransform = {})); -// _.values -var TestValues; -(function (TestValues) { - var object; - { - var result_740; - result_740 = _.values(object); - } - { - var result_741; - result_741 = _(object).values(); - } - { - var result_742; - result_742 = _(object).chain().values(); - } -})(TestValues || (TestValues = {})); -// _.valuesIn -var TestValuesIn; -(function (TestValuesIn) { - var object; - { - var result_743; - result_743 = _.valuesIn(object); - } - { - var result_744; - result_744 = _(object).valuesIn(); - } - { - var result_745; - result_745 = _(object).chain().valuesIn(); - } -})(TestValuesIn || (TestValuesIn = {})); -/********** - * String * - **********/ -// _.camelCase -var TestCamelCase; -(function (TestCamelCase) { - { - var result_746; - result_746 = _.camelCase('Foo Bar'); - result_746 = _('Foo Bar').camelCase(); - } - { - var result_747; - result_747 = _('Foo Bar').chain().camelCase(); - } -})(TestCamelCase || (TestCamelCase = {})); -// _.capitalize -var TestCapitalize; -(function (TestCapitalize) { - { - var result_748; - result_748 = _.capitalize('fred'); - result_748 = _('fred').capitalize(); - } - { - var result_749; - result_749 = _('fred').chain().capitalize(); - } -})(TestCapitalize || (TestCapitalize = {})); -// _.deburr -var TestDeburr; -(function (TestDeburr) { - { - var result_750; - result_750 = _.deburr('déjà vu'); - result_750 = _('déjà vu').deburr(); - } - { - var result_751; - result_751 = _('déjà vu').chain().deburr(); - } -})(TestDeburr || (TestDeburr = {})); -// _.endsWith -var TestEndsWith; -(function (TestEndsWith) { - { - var result_752; - result_752 = _.endsWith('abc', 'c'); - result_752 = _.endsWith('abc', 'c', 1); - result_752 = _('abc').endsWith('c'); - result_752 = _('abc').endsWith('c', 1); - } - { - var result_753; - result_753 = _('abc').chain().endsWith('c'); - result_753 = _('abc').chain().endsWith('c', 1); - } -})(TestEndsWith || (TestEndsWith = {})); -// _.escape -var TestEscape; -(function (TestEscape) { - { - var result_754; - result_754 = _.escape('fred, barney, & pebbles'); - result_754 = _('fred, barney, & pebbles').escape(); - } - { - var result_755; - result_755 = _('fred, barney, & pebbles').chain().escape(); - } -})(TestEscape || (TestEscape = {})); -// _.escapeRegExp -var TestEscapeRegExp; -(function (TestEscapeRegExp) { - { - var result_756; - result_756 = _.escapeRegExp('[lodash](https://lodash.com/)'); - result_756 = _('[lodash](https://lodash.com/)').escapeRegExp(); - } - { - var result_757; - result_757 = _('[lodash](https://lodash.com/)').chain().escapeRegExp(); - } -})(TestEscapeRegExp || (TestEscapeRegExp = {})); -// _.kebabCase -var TestKebabCase; -(function (TestKebabCase) { - { - var result_758; - result_758 = _.kebabCase('Foo Bar'); - result_758 = _('Foo Bar').kebabCase(); - } - { - var result_759; - result_759 = _('Foo Bar').chain().kebabCase(); - } -})(TestKebabCase || (TestKebabCase = {})); -// _.lowerCase -var TestLowerCase; -(function (TestLowerCase) { - { - var result_760; - result_760 = _.lowerCase('Foo Bar'); - result_760 = _('Foo Bar').lowerCase(); - } - { - var result_761; - result_761 = _('Foo Bar').chain().lowerCase(); - } -})(TestLowerCase || (TestLowerCase = {})); -// _.lowerFirst -var TestLowerFirst; -(function (TestLowerFirst) { - { - var result_762; - result_762 = _.lowerFirst('Foo Bar'); - result_762 = _('Foo Bar').lowerFirst(); - } - { - var result_763; - result_763 = _('Foo Bar').chain().lowerFirst(); - } -})(TestLowerFirst || (TestLowerFirst = {})); -// _.pad -var TestPad; -(function (TestPad) { - { - var result_764; - result_764 = _.pad('abd'); - result_764 = _.pad('abc', 8); - result_764 = _.pad('abc', 8, '_-'); - result_764 = _('abc').pad(); - result_764 = _('abc').pad(8); - result_764 = _('abc').pad(8, '_-'); - } - { - var result_765; - result_765 = _('abc').chain().pad(); - result_765 = _('abc').chain().pad(8); - result_765 = _('abc').chain().pad(8, '_-'); - } -})(TestPad || (TestPad = {})); -// _.padStart -var TestPadStart; -(function (TestPadStart) { - { - var result_766; - result_766 = _.padStart('abc'); - result_766 = _.padStart('abc', 6); - result_766 = _.padStart('abc', 6, '_-'); - result_766 = _('abc').padStart(); - result_766 = _('abc').padStart(6); - result_766 = _('abc').padStart(6, '_-'); - } - { - var result_767; - result_767 = _('abc').chain().padStart(); - result_767 = _('abc').chain().padStart(6); - result_767 = _('abc').chain().padStart(6, '_-'); - } -})(TestPadStart || (TestPadStart = {})); -// _.padEnd -var TestPadEnd; -(function (TestPadEnd) { - { - var result_768; - result_768 = _.padEnd('abc'); - result_768 = _.padEnd('abc', 6); - result_768 = _.padEnd('abc', 6, '_-'); - result_768 = _('abc').padEnd(); - result_768 = _('abc').padEnd(6); - result_768 = _('abc').padEnd(6, '_-'); - } - { - var result_769; - result_769 = _('abc').chain().padEnd(); - result_769 = _('abc').chain().padEnd(6); - result_769 = _('abc').chain().padEnd(6, '_-'); - } -})(TestPadEnd || (TestPadEnd = {})); -// _.parseInt -var TestParseInt; -(function (TestParseInt) { - { - var result_770; - result_770 = _.parseInt('08'); - result_770 = _.parseInt('08', 10); - result_770 = _('08').parseInt(); - result_770 = _('08').parseInt(10); - } - { - var result_771; - result_771 = _('08').chain().parseInt(); - result_771 = _('08').chain().parseInt(10); - } -})(TestParseInt || (TestParseInt = {})); -// _.repeat -var TestRepeat; -(function (TestRepeat) { - { - var result_772; - result_772 = _.repeat('*'); - result_772 = _.repeat('*', 3); - result_772 = _('*').repeat(); - result_772 = _('*').repeat(3); - } - { - var result_773; - result_773 = _('*').chain().repeat(); - result_773 = _('*').chain().repeat(3); - } -})(TestRepeat || (TestRepeat = {})); -// _.snakeCase -var TestSnakeCase; -(function (TestSnakeCase) { - { - var result_774; - result_774 = _.snakeCase('Foo Bar'); - result_774 = _('Foo Bar').snakeCase(); - } - { - var result_775; - result_775 = _('Foo Bar').chain().snakeCase(); - } -})(TestSnakeCase || (TestSnakeCase = {})); -// _.startCase -var TestStartCase; -(function (TestStartCase) { - { - var result_776; - result_776 = _.startCase('--foo-bar'); - result_776 = _('--foo-bar').startCase(); - } - { - var result_777; - result_777 = _('--foo-bar').chain().startCase(); - } -})(TestStartCase || (TestStartCase = {})); -// _.startsWith -var TestStartsWith; -(function (TestStartsWith) { - { - var result_778; - result_778 = _.startsWith('abc', 'a'); - result_778 = _.startsWith('abc', 'a', 1); - result_778 = _('abc').startsWith('a'); - result_778 = _('abc').startsWith('a', 1); - } - { - var result_779; - result_779 = _('abc').chain().startsWith('a'); - result_779 = _('abc').chain().startsWith('a', 1); - } -})(TestStartsWith || (TestStartsWith = {})); -// _.template -var TestTemplate; -(function (TestTemplate) { - var options; - { - var result_780; - result_780 = _.template(''); - result_780 = _.template('', options); - result_780 = _('').template(); - result_780 = _('').template(options); - } - { - var result_781; - result_781 = _('').chain().template(); - result_781 = _('').chain().template(options); - } -})(TestTemplate || (TestTemplate = {})); -// _.toLower -var TestToLower; -(function (TestToLower) { - { - var result_782; - result_782 = _.toLower('fred, barney, & pebbles'); - result_782 = _('fred, barney, & pebbles').toLower(); - } - { - var result_783; - result_783 = _('fred, barney, & pebbles').chain().toLower(); - } -})(TestToLower || (TestToLower = {})); -// _.toUpper -var TestToUpper; -(function (TestToUpper) { - { - var result_784; - result_784 = _.toUpper('fred, barney, & pebbles'); - result_784 = _('fred, barney, & pebbles').toUpper(); - } - { - var result_785; - result_785 = _('fred, barney, & pebbles').chain().toUpper(); - } -})(TestToUpper || (TestToUpper = {})); -// _.trim -var TestTrim; -(function (TestTrim) { - { - var result_786; - result_786 = _.trim(); - result_786 = _.trim(' abc '); - result_786 = _.trim('-_-abc-_-', '_-'); - result_786 = _('-_-abc-_-').trim(); - result_786 = _('-_-abc-_-').trim('_-'); - } - { - var result_787; - result_787 = _('-_-abc-_-').chain().trim(); - result_787 = _('-_-abc-_-').chain().trim('_-'); - } -})(TestTrim || (TestTrim = {})); -// _.trimStart -var TestTrimStart; -(function (TestTrimStart) { - { - var result_788; - result_788 = _.trimStart(); - result_788 = _.trimStart(' abc '); - result_788 = _.trimStart('-_-abc-_-', '_-'); - result_788 = _('-_-abc-_-').trimStart(); - result_788 = _('-_-abc-_-').trimStart('_-'); - } - { - var result_789; - result_789 = _('-_-abc-_-').chain().trimStart(); - result_789 = _('-_-abc-_-').chain().trimStart('_-'); - } -})(TestTrimStart || (TestTrimStart = {})); -// _.trimEnd -var TestTrimEnd; -(function (TestTrimEnd) { - { - var result_790; - result_790 = _.trimEnd(); - result_790 = _.trimEnd(' abc '); - result_790 = _.trimEnd('-_-abc-_-', '_-'); - result_790 = _('-_-abc-_-').trimEnd(); - result_790 = _('-_-abc-_-').trimEnd('_-'); - } - { - var result_791; - result_791 = _('-_-abc-_-').chain().trimEnd(); - result_791 = _('-_-abc-_-').chain().trimEnd('_-'); - } -})(TestTrimEnd || (TestTrimEnd = {})); -// _.truncate -var Testtruncate; -(function (Testtruncate) { - { - var result_792; - result_792 = _.truncate('hi-diddly-ho there, neighborino'); - result_792 = _.truncate('hi-diddly-ho there, neighborino', 24); - result_792 = _.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': ' ' }); - result_792 = _.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': /,? +/ }); - result_792 = _.truncate('hi-diddly-ho there, neighborino', { 'omission': ' […]' }); - result_792 = _('hi-diddly-ho there, neighborino').truncate(); - result_792 = _('hi-diddly-ho there, neighborino').truncate(24); - result_792 = _('hi-diddly-ho there, neighborino').truncate({ 'length': 24, 'separator': ' ' }); - result_792 = _('hi-diddly-ho there, neighborino').truncate({ 'length': 24, 'separator': /,? +/ }); - result_792 = _('hi-diddly-ho there, neighborino').truncate({ 'omission': ' […]' }); - } - { - var result_793; - result_793 = _('hi-diddly-ho there, neighborino').chain().truncate(); - result_793 = _('hi-diddly-ho there, neighborino').chain().truncate(24); - result_793 = _('hi-diddly-ho there, neighborino').chain().truncate({ 'length': 24, 'separator': ' ' }); - result_793 = _('hi-diddly-ho there, neighborino').chain().truncate({ 'length': 24, 'separator': /,? +/ }); - result_793 = _('hi-diddly-ho there, neighborino').chain().truncate({ 'omission': ' […]' }); - } -})(Testtruncate || (Testtruncate = {})); -// _.upperCase -var TestUpperCase; -(function (TestUpperCase) { - { - var result_794; - result_794 = _.upperCase('fred, barney, & pebbles'); - result_794 = _('fred, barney, & pebbles').upperCase(); - } - { - var result_795; - result_795 = _('fred, barney, & pebbles').chain().upperCase(); - } -})(TestUpperCase || (TestUpperCase = {})); -// _.upperFirst -var TestUpperFirst; -(function (TestUpperFirst) { - { - var result_796; - result_796 = _.upperFirst('fred, barney, & pebbles'); - result_796 = _('fred, barney, & pebbles').upperFirst(); - } - { - var result_797; - result_797 = _('fred, barney, & pebbles').chain().upperFirst(); - } -})(TestUpperFirst || (TestUpperFirst = {})); -// _.unescape -var TestUnescape; -(function (TestUnescape) { - { - var result_798; - result_798 = _.unescape('fred, barney, & pebbles'); - result_798 = _('fred, barney, & pebbles').unescape(); - } - { - var result_799; - result_799 = _('fred, barney, & pebbles').chain().unescape(); - } -})(TestUnescape || (TestUnescape = {})); -// _.words -var TestWords; -(function (TestWords) { - { - var result_800; - result_800 = _.words('fred, barney, & pebbles'); - result_800 = _.words('fred, barney, & pebbles', /[^, ]+/g); - result_800 = _('fred, barney, & pebbles').words(); - result_800 = _('fred, barney, & pebbles').words(/[^, ]+/g); - } - { - var result_801; - result_801 = _('fred, barney, & pebbles').chain().words(); - result_801 = _('fred, barney, & pebbles').chain().words(/[^, ]+/g); - } -})(TestWords || (TestWords = {})); -/*********** - * Utility * - ***********/ -// _.attempt -var TestAttempt; -(function (TestAttempt) { - var func; - { - var result_802; - result_802 = _.attempt(func); - result_802 = _(func).attempt(); - } - { - var result_803; - result_803 = _(func).chain().attempt(); - } -})(TestAttempt || (TestAttempt = {})); -// _.constant -var TestConstant; -(function (TestConstant) { - { - var result_804; - result: _.constant(42); - } - { - var result_805; - result: _.constant('a'); - } - { - var result_806; - result: _.constant(true); - } - { - var result_807; - result: _.constant(['a']); - } - { - var result_808; - result: _.constant({ a: 'a' }); - } - { - var result_809; - result: _(42).constant(); - } - { - var result_810; - result: _('a').constant(); - } - { - var result_811; - result: _(true).constant(); - } - { - var result_812; - result: _(['a']).constant(); - } - { - var result_813; - result: _({ a: 'a' }).constant(); - } - { - var result_814; - result: _(42).chain().constant(); - } - { - var result_815; - result: _('a').chain().constant(); - } - { - var result_816; - result: _(true).chain().constant(); - } - { - var result_817; - result: _(['a']).chain().constant(); - } - { - var result_818; - result: _({ a: 'a' }).chain().constant(); - } -})(TestConstant || (TestConstant = {})); -// _.identity -{ - var testIdentityValue; - var result_819; - result_819 = _.identity(testIdentityValue); - result_819 = _(testIdentityValue).identity(); -} -{ - var result_820; - result_820 = _(42).identity(); -} -{ - var result_821; - result_821 = _([]).identity(); -} -// _.iteratee -var TestIteratee; -(function (TestIteratee) { - { - var result_822; - result_822 = _.iteratee(Function); - result_822 = _.iteratee(Function, any); - } - { - var result_823; - result_823 = _.iteratee(''); - result_823 = _.iteratee('', any); - } - { - var result_824; - result_824 = _.iteratee({}); - result_824 = _.iteratee({}, any); - } - { - var result_825; - result_825 = _(Function).iteratee(); - result_825 = _(Function).iteratee(any); - } - { - var result_826; - result_826 = _('').iteratee(); - result_826 = _('').iteratee(any); - } - { - var result_827; - result_827 = _({}).iteratee(); - result_827 = _({}).iteratee(any); - } - { - var result_828; - result_828 = _(Function).chain().iteratee(); - result_828 = _(Function).chain().iteratee(any); - } - { - var result_829; - result_829 = _('').chain().iteratee(); - result_829 = _('').chain().iteratee(any); - } - { - var result_830; - result_830 = _({}).chain().iteratee(); - result_830 = _({}).chain().iteratee(any); - } -})(TestIteratee || (TestIteratee = {})); -// _.matches -var TestMatches; -(function (TestMatches) { - var source; - { - var result_831; - result_831 = _.matches(source); - } - { - var result_832; - result_832 = _.matches(source); - } - { - var result_833; - result_833 = _(source).matches(); - } - { - var result_834; - result_834 = _(source).chain().matches(); - } -})(TestMatches || (TestMatches = {})); -// _.matchesProperty -var TestMatches; -(function (TestMatches) { - var path; - var source; - { - var result_835; - result_835 = _.matchesProperty(path, source); - } - { - var result_836; - result_836 = _.matchesProperty(path, source); - } - { - var result_837; - result_837 = _(path).matchesProperty(source); - } - { - var result_838; - result_838 = _(path).matchesProperty(source); - } - { - var result_839; - result_839 = _(path).chain().matchesProperty(source); - } - { - var result_840; - result_840 = _(path).chain().matchesProperty(source); - } -})(TestMatches || (TestMatches = {})); -// _.method -var TestMethod; -(function (TestMethod) { - { - var result_841; - result_841 = _.method('a.0'); - result_841 = _.method('a.0', any); - result_841 = _.method('a.0', any, any); - result_841 = _.method('a.0', any, any, any); - result_841 = _.method(['a', 0]); - result_841 = _.method(['a', 0], any); - result_841 = _.method(['a', 0], any, any); - result_841 = _.method(['a', 0], any, any, any); - } - { - var result_842; - result_842 = _.method('a.0'); - result_842 = _.method('a.0', any); - result_842 = _.method('a.0', any, any); - result_842 = _.method('a.0', any, any, any); - result_842 = _.method(['a', 0]); - result_842 = _.method(['a', 0], any); - result_842 = _.method(['a', 0], any, any); - result_842 = _.method(['a', 0], any, any, any); - } - { - var result_843; - result_843 = _('a.0').method(); - result_843 = _('a.0').method(any); - result_843 = _('a.0').method(any, any); - result_843 = _('a.0').method(any, any, any); - result_843 = _(['a', 0]).method(); - result_843 = _(['a', 0]).method(any); - result_843 = _(['a', 0]).method(any, any); - result_843 = _(['a', 0]).method(any, any, any); - } - { - var result_844; - result_844 = _('a.0').method(); - result_844 = _('a.0').method(any); - result_844 = _('a.0').method(any, any); - result_844 = _('a.0').method(any, any, any); - result_844 = _(['a', 0]).method(); - result_844 = _(['a', 0]).method(any); - result_844 = _(['a', 0]).method(any, any); - result_844 = _(['a', 0]).method(any, any, any); - } - { - var result_845; - result_845 = _('a.0').chain().method(); - result_845 = _('a.0').chain().method(any); - result_845 = _('a.0').chain().method(any, any); - result_845 = _('a.0').chain().method(any, any, any); - result_845 = _(['a', 0]).chain().method(); - result_845 = _(['a', 0]).chain().method(any); - result_845 = _(['a', 0]).chain().method(any, any); - result_845 = _(['a', 0]).chain().method(any, any, any); - } - { - var result_846; - result_846 = _('a.0').chain().method(); - result_846 = _('a.0').chain().method(any); - result_846 = _('a.0').chain().method(any, any); - result_846 = _('a.0').chain().method(any, any, any); - result_846 = _(['a', 0]).chain().method(); - result_846 = _(['a', 0]).chain().method(any); - result_846 = _(['a', 0]).chain().method(any, any); - result_846 = _(['a', 0]).chain().method(any, any, any); - } -})(TestMethod || (TestMethod = {})); -// _.methodOf -var TestMethodOf; -(function (TestMethodOf) { - var object; - { - var result_847; - result_847 = _.methodOf(object); - result_847 = _.methodOf(object, any); - result_847 = _.methodOf(object, any, any); - result_847 = _.methodOf(object, any, any, any); - result_847 = _.methodOf(object); - result_847 = _.methodOf(object, any); - result_847 = _.methodOf(object, any, any); - result_847 = _.methodOf(object, any, any, any); - } - { - var result_848; - result_848 = _(object).methodOf(); - result_848 = _(object).methodOf(any); - result_848 = _(object).methodOf(any, any); - result_848 = _(object).methodOf(any, any, any); - } - { - var result_849; - result_849 = _(object).chain().methodOf(); - result_849 = _(object).chain().methodOf(any); - result_849 = _(object).chain().methodOf(any, any); - result_849 = _(object).chain().methodOf(any, any, any); - } -})(TestMethodOf || (TestMethodOf = {})); -// _.mixin -var TestMixin; -(function (TestMixin) { - var source; - var options; - { - var result_850; - result_850 = _.mixin({}, source); - result_850 = _.mixin({}, source, options); - result_850 = _.mixin(source); - result_850 = _.mixin(source, options); - } - { - var result_851; - result_851 = _({}).mixin(source); - result_851 = _({}).mixin(source, options); - result_851 = _(source).mixin(); - result_851 = _(source).mixin(options); - } - { - var result_852; - result_852 = _({}).chain().mixin(source); - result_852 = _({}).chain().mixin(source, options); - result_852 = _(source).chain().mixin(); - result_852 = _(source).chain().mixin(options); - } -})(TestMixin || (TestMixin = {})); -// _.noConflict -{ - var result_853; - result_853 = _.noConflict(); - result_853 = _(42).noConflict(); - result_853 = _([]).noConflict(); - result_853 = _({}).noConflict(); -} -// _.noop -var TestNoop; -(function (TestNoop) { - { - var result_854; - result_854 = _.noop(); - result_854 = _.noop(1); - result_854 = _.noop('a', 1); - result_854 = _.noop(true, 'a', 1); - result_854 = _('a').noop(true, 'a', 1); - result_854 = _([1]).noop(true, 'a', 1); - result_854 = _([]).noop(true, 'a', 1); - result_854 = _({}).noop(true, 'a', 1); - result_854 = _(any).noop(true, 'a', 1); - } - { - var result_855; - result_855 = _('a').chain().noop(true, 'a', 1); - result_855 = _([1]).chain().noop(true, 'a', 1); - result_855 = _([]).chain().noop(true, 'a', 1); - result_855 = _({}).chain().noop(true, 'a', 1); - result_855 = _(any).chain().noop(true, 'a', 1); - } -})(TestNoop || (TestNoop = {})); -// _.property -var TestProperty; -(function (TestProperty) { - { - var result_856; - result_856 = _.property('a.b[0]'); - result_856 = _.property(['a', 'b', 0]); - } - { - var result_857; - result_857 = _('a.b[0]').property(); - result_857 = _(['a', 'b', 0]).property(); - } - { - var result_858; - result_858 = _('a.b[0]').chain().property(); - result_858 = _(['a', 'b', 0]).chain().property(); - } -})(TestProperty || (TestProperty = {})); -// _.propertyOf -var TestPropertyOf; -(function (TestPropertyOf) { - var object; - { - var result_859; - result_859 = _.propertyOf({}); - result_859 = _.propertyOf(object); - } - { - var result_860; - result_860 = _({}).propertyOf(); - } - { - var result_861; - result_861 = _({}).chain().propertyOf(); - } -})(TestPropertyOf || (TestPropertyOf = {})); -// _.range -var TestRange; -(function (TestRange) { - { - var result_862; - result_862 = _.range(10); - result_862 = _.range(1, 11); - result_862 = _.range(0, 30, 5); - } - { - var result_863; - result_863 = _(10).range(); - result_863 = _(1).range(11); - result_863 = _(0).range(30, 5); - } - { - var result_864; - result_864 = _(10).chain().range(); - result_864 = _(1).chain().range(11); - result_864 = _(0).chain().range(30, 5); - } -})(TestRange || (TestRange = {})); -// _.rangeRight -var TestRangeRight; -(function (TestRangeRight) { - { - var result_865; - result_865 = _.rangeRight(10); - result_865 = _.rangeRight(1, 11); - result_865 = _.rangeRight(0, 30, 5); - } - { - var result_866; - result_866 = _(10).rangeRight(); - result_866 = _(1).rangeRight(11); - result_866 = _(0).rangeRight(30, 5); - } - { - var result_867; - result_867 = _(10).chain().rangeRight(); - result_867 = _(1).chain().rangeRight(11); - result_867 = _(0).chain().rangeRight(30, 5); - } -})(TestRangeRight || (TestRangeRight = {})); -// _.runInContext -{ - var result_868; - result_868 = _.runInContext(); - result_868 = _.runInContext({}); - result_868 = _({}).runInContext(); -} -// _.times -var TestTimes; -(function (TestTimes) { - var iteratee; - { - var result_869; - result_869 = _.times(42); - } - { - var result_870; - result_870 = _.times(42, iteratee); - result_870 = _.times(42, iteratee, any); - } - { - var result_871; - result_871 = _(42).times(); - } - { - var result_872; - result_872 = _(42).times(iteratee); - result_872 = _(42).times(iteratee, any); - } - { - var result_873; - result_873 = _(42).chain().times(); - } - { - var result_874; - result_874 = _(42).chain().times(iteratee); - result_874 = _(42).chain().times(iteratee, any); - } -})(TestTimes || (TestTimes = {})); -// _.toPath -var TestToPath; -(function (TestToPath) { - { - var result_875; - result_875 = _.toPath(true); - result_875 = _.toPath(1); - result_875 = _.toPath('a'); - result_875 = _.toPath(["a"]); - result_875 = _.toPath({}); - } - { - var result_876; - result_876 = _(true).toPath(); - result_876 = _(1).toPath(); - result_876 = _('a').toPath(); - result_876 = _([1]).toPath(); - result_876 = _(["a"]).toPath(); - result_876 = _({}).toPath(); - } -})(TestToPath || (TestToPath = {})); -// _.uniqueId -var TestUniqueId; -(function (TestUniqueId) { - { - var result_877; - result_877 = _.uniqueId(); - result_877 = _.uniqueId(''); - result_877 = _('').uniqueId(); - } - { - var result_878; - result_878 = _('').chain().uniqueId(); - } -})(TestUniqueId || (TestUniqueId = {})); -result = _.VERSION; -result = _.templateSettings; -// _.partial & _.partialRight -{ - function func0() { - return 42; - } - function func1(arg1) { - return arg1 * 2; - } - function func2(arg1, arg2) { - return arg1 * arg2.length; - } - function func3(arg1, arg2, arg3) { - return arg1 * arg2.length + (arg3 ? 1 : 0); - } - function func4(arg1, arg2, arg3, arg4) { - return arg1 * arg2.length + (arg3 ? 1 : 0) - arg4; - } - var res____; - var res1___; - var res_2__; - var res__3_; - var res___4; - var res12__; - var res1_3_; - var res1__4; - var res_23_; - var res_2_4; - var res__34; - var res123_; - var res12_4; - var res1_34; - var res_234; - var res1234; - // - // _.partial - // - // with arity 0 function - res____ = _.partial(func0); - // with arity 1 function - res____ = _.partial(func1, 42); - res1___ = _.partial(func1); - // with arity 2 function - res12__ = _.partial(func2); - res_2__ = _.partial(func2, 42); - res1___ = _.partial(func2, _, "foo"); - res____ = _.partial(func2, 42, "foo"); - // with arity 3 function - res123_ = _.partial(func3); - res_23_ = _.partial(func3, 42); - res1_3_ = _.partial(func3, _, "foo"); - res__3_ = _.partial(func3, 42, "foo"); - res12__ = _.partial(func3, _, _, true); - res_2__ = _.partial(func3, 42, _, true); - res1___ = _.partial(func3, _, "foo", true); - res____ = _.partial(func3, 42, "foo", true); - // with arity 4 function - res1234 = _.partial(func4); - res_234 = _.partial(func4, 42); - res1_34 = _.partial(func4, _, "foo"); - res__34 = _.partial(func4, 42, "foo"); - res12_4 = _.partial(func4, _, _, true); - res_2_4 = _.partial(func4, 42, _, true); - res1__4 = _.partial(func4, _, "foo", true); - res___4 = _.partial(func4, 42, "foo", true); - res123_ = _.partial(func4, _, _, _, 100); - res_23_ = _.partial(func4, 42, _, _, 100); - res1_3_ = _.partial(func4, _, "foo", _, 100); - res__3_ = _.partial(func4, 42, "foo", _, 100); - res12__ = _.partial(func4, _, _, true, 100); - res_2__ = _.partial(func4, 42, _, true, 100); - res1___ = _.partial(func4, _, "foo", true, 100); - res____ = _.partial(func4, 42, "foo", true, 100); - // - // _.partialRight - // - // with arity 0 function - res____ = _.partialRight(func0); - // with arity 1 function - res____ = _.partialRight(func1, 42); - res1___ = _.partialRight(func1); - // with arity 2 function - res12__ = _.partialRight(func2); - res_2__ = _.partialRight(func2, 42, _); - res1___ = _.partialRight(func2, "foo"); - res____ = _.partialRight(func2, 42, "foo"); - // with arity 3 function - res123_ = _.partialRight(func3); - res_23_ = _.partialRight(func3, 42, _, _); - res1_3_ = _.partialRight(func3, "foo", _); - res__3_ = _.partialRight(func3, 42, "foo", _); - res12__ = _.partialRight(func3, true); - res_2__ = _.partialRight(func3, 42, _, true); - res1___ = _.partialRight(func3, "foo", true); - res____ = _.partialRight(func3, 42, "foo", true); - // with arity 4 function - res1234 = _.partialRight(func4); - res_234 = _.partialRight(func4, 42, _, _, _); - res1_34 = _.partialRight(func4, "foo", _, _); - res__34 = _.partialRight(func4, 42, "foo", _, _); - res12_4 = _.partialRight(func4, true, _); - res_2_4 = _.partialRight(func4, 42, _, true, _); - res1__4 = _.partialRight(func4, "foo", true, _); - res___4 = _.partialRight(func4, 42, "foo", true, _); - res123_ = _.partialRight(func4, 100); - res_23_ = _.partialRight(func4, 42, _, _, 100); - res1_3_ = _.partialRight(func4, "foo", _, 100); - res__3_ = _.partialRight(func4, 42, "foo", _, 100); - res12__ = _.partialRight(func4, true, 100); - res_2__ = _.partialRight(func4, 42, _, true, 100); - res1___ = _.partialRight(func4, "foo", true, 100); - res____ = _.partialRight(func4, 42, "foo", true, 100); -} diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index c659fce1a..217502a4e 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3955,46 +3955,42 @@ module TestInvokeMap { d: 4 } - { - let result: string[]; - result = _.invokeMap(numArray, 'toString'); - result = _.invokeMap(numArray, 'toString', 2); - result = _.invokeMap(numArray, 'toString'); - result = _.invokeMap(numArray, 'toString', 2); - result = _(numArray).invokeMap('toString').value(); - result = _(numArray).invokeMap('toString', 2).value(); - result = _(numArray).chain().invokeMap('toString').value(); - result = _(numArray).chain().invokeMap('toString', 2).value(); - - result = _.invokeMap(numArray, Number.prototype.toString); - result = _.invokeMap(numArray, Number.prototype.toString, 2); - result = _.invokeMap(numArray, Number.prototype.toString); - result = _.invokeMap(numArray, Number.prototype.toString, 2); - result = _(numArray).invokeMap(Number.prototype.toString).value(); - result = _(numArray).invokeMap(Number.prototype.toString, 2).value(); - result = _(numArray).chain().invokeMap(Number.prototype.toString).value(); - result = _(numArray).chain().invokeMap(Number.prototype.toString, 2).value(); - } - { - let result: _.Dictionary - result = _.invokeMap(numDict, 'toString'); - result = _.invokeMap(numDict, 'toString', 2); - result = _.invokeMap(numDict, 'toString'); - result = _.invokeMap(numDict, 'toString', 2); - result = _(numDict).invokeMap('toString').value(); - result = _(numDict).invokeMap('toString', 2).value(); - result = _(numDict).chain().invokeMap('toString').value(); - result = _(numDict).chain().invokeMap('toString', 2).value(); - - result = _.invokeMap(numDict, Number.prototype.toString); - result = _.invokeMap(numDict, Number.prototype.toString, 2); - result = _.invokeMap(numDict, Number.prototype.toString); - result = _.invokeMap(numDict, Number.prototype.toString, 2); - result = _(numDict).invokeMap(Number.prototype.toString).value(); - result = _(numDict).invokeMap(Number.prototype.toString, 2).value(); - result = _(numDict).chain().invokeMap(Number.prototype.toString).value(); - result = _(numDict).chain().invokeMap(Number.prototype.toString, 2).value(); - } + let result: string[]; + result = _.invokeMap(numArray, 'toString'); + result = _.invokeMap(numArray, 'toString', 2); + result = _.invokeMap(numArray, 'toString'); + result = _.invokeMap(numArray, 'toString', 2); + result = _(numArray).invokeMap('toString').value(); + result = _(numArray).invokeMap('toString', 2).value(); + result = _(numArray).chain().invokeMap('toString').value(); + result = _(numArray).chain().invokeMap('toString', 2).value(); + + result = _.invokeMap(numArray, Number.prototype.toString); + result = _.invokeMap(numArray, Number.prototype.toString, 2); + result = _.invokeMap(numArray, Number.prototype.toString); + result = _.invokeMap(numArray, Number.prototype.toString, 2); + result = _(numArray).invokeMap(Number.prototype.toString).value(); + result = _(numArray).invokeMap(Number.prototype.toString, 2).value(); + result = _(numArray).chain().invokeMap(Number.prototype.toString).value(); + result = _(numArray).chain().invokeMap(Number.prototype.toString, 2).value(); + + result = _.invokeMap(numDict, 'toString'); + result = _.invokeMap(numDict, 'toString', 2); + result = _.invokeMap(numDict, 'toString'); + result = _.invokeMap(numDict, 'toString', 2); + result = _(numDict).invokeMap('toString').value(); + result = _(numDict).invokeMap('toString', 2).value(); + result = _(numDict).chain().invokeMap('toString').value(); + result = _(numDict).chain().invokeMap('toString', 2).value(); + + result = _.invokeMap(numDict, Number.prototype.toString); + result = _.invokeMap(numDict, Number.prototype.toString, 2); + result = _.invokeMap(numDict, Number.prototype.toString); + result = _.invokeMap(numDict, Number.prototype.toString, 2); + result = _(numDict).invokeMap(Number.prototype.toString).value(); + result = _(numDict).invokeMap(Number.prototype.toString, 2).value(); + result = _(numDict).chain().invokeMap(Number.prototype.toString).value(); + result = _(numDict).chain().invokeMap(Number.prototype.toString, 2).value(); } // _.map diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index dfe2c77c7..cd5fead48 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -6793,7 +6793,7 @@ declare module _ { invokeMap( collection: Dictionary, methodName: string, - ...args: any[]): Dictionary; + ...args: any[]): TResult[]; /** * @see _.invokeMap @@ -6809,7 +6809,7 @@ declare module _ { invokeMap( collection: Dictionary<{}>, methodName: string, - ...args: any[]): Dictionary; + ...args: any[]): TResult[]; /** * @see _.invokeMap @@ -6825,7 +6825,7 @@ declare module _ { invokeMap( collection: Dictionary, method: (...args: any[]) => TResult, - ...args: any[]): Dictionary; + ...args: any[]): TResult[]; /** * @see _.invokeMap @@ -6841,7 +6841,7 @@ declare module _ { invokeMap( collection: Dictionary<{}>, method: (...args: any[]) => TResult, - ...args: any[]): Dictionary; + ...args: any[]): TResult[]; } interface LoDashImplicitArrayWrapper { @@ -6866,14 +6866,14 @@ declare module _ { **/ invokeMap( methodName: string, - ...args: any[]): LoDashImplicitObjectWrapper<_.Dictionary>; + ...args: any[]): LoDashImplicitArrayWrapper; /** * @see _.invokeMap **/ invokeMap( method: (...args: any[]) => TResult, - ...args: any[]): LoDashImplicitObjectWrapper<_.Dictionary>; + ...args: any[]): LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { @@ -6898,14 +6898,14 @@ declare module _ { **/ invokeMap( methodName: string, - ...args: any[]): LoDashExplicitObjectWrapper<_.Dictionary>; + ...args: any[]): LoDashExplicitArrayWrapper; /** * @see _.invokeMap **/ invokeMap( method: (...args: any[]) => TResult, - ...args: any[]): LoDashExplicitObjectWrapper<_.Dictionary>; + ...args: any[]): LoDashExplicitArrayWrapper; } //_.map From a44ae6df3fd333d66400b8184863eaa2340f79bc Mon Sep 17 00:00:00 2001 From: repairman2003 Date: Fri, 29 Jan 2016 01:52:04 -0500 Subject: [PATCH 14/59] Adding auth0-angular.d.ts --- auth0-angular/auth0-angular-tests.ts | 24 ++++ auth0-angular/auth0-angular.d.ts | 167 +++++++++++++++++++++++++++ 2 files changed, 191 insertions(+) create mode 100644 auth0-angular/auth0-angular-tests.ts create mode 100644 auth0-angular/auth0-angular.d.ts diff --git a/auth0-angular/auth0-angular-tests.ts b/auth0-angular/auth0-angular-tests.ts new file mode 100644 index 000000000..1abd9fdc3 --- /dev/null +++ b/auth0-angular/auth0-angular-tests.ts @@ -0,0 +1,24 @@ +/// + +var authProvider: auth0.angular.IAuth0ServiceProvider; + +// Initialize Auth0 +authProvider.init({ + clientID: 'myClientID', + domain: 'mydomain.auth0.com' +}); + +// Listen for authenticated event +authProvider.on('authenticated', ($location: any) => { +}); + + +var authService: auth0.angular.IAuth0Service; + +// Sign in to Auth0 +authService.signin({}, (profile: string, idToken: string, acccessToken: string, state: string, refreshToken: string) => { +}, (err) => { +}); + +// Sign out of Auth0 +authService.signout(); \ No newline at end of file diff --git a/auth0-angular/auth0-angular.d.ts b/auth0-angular/auth0-angular.d.ts new file mode 100644 index 000000000..1aa633c8e --- /dev/null +++ b/auth0-angular/auth0-angular.d.ts @@ -0,0 +1,167 @@ +// Type definitions for auth0-angular +// Project: https://github.com/auth0/auth0-angular +// Definitions by: Matt Emory https://github.com/homesar +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module auth0.angular { + + interface IAuth0ClientOptions { + /** + * Login url if you're using ngRoute + */ + loginUrl?: string; + + /** + * Login state if you're using ui-router + */ + loginState?: string; + + /** + * Client identifier of your Auth0 application + */ + clientID: string; + + /** + * Domain of your Auth0 account + */ + domain: string; + + /** + * Use single signon + */ + sso?: boolean; + } + + interface ITokenOptions { + + targetClientId?: string; + api?: string; + } + + interface IAuth0Options { + /** + * Connection name + */ + connection?: string; + + /** + * Username + */ + username?: string; + + /** + * Email address + */ + email?: string; + } + + interface ISuccessCallback { + (profile?: string, idToken?: string, accessToken?: string, state?: string, refreshToken?: string): void; + } + + interface IErrorCallback { + (error: any): void; + } + + interface IAuth0Service { + /** + * Hooks to internal Angular events so that a user will be redirected to the login page if trying to visit a restricted resource + */ + hookEvents(): void; + + /** + * Performs a token delegation request exchanging th ecurrent token for another one. + * @param options Token options + */ + getToken(options?: ITokenOptions): ng.IPromise; + + /** + * Refreshes the Id token + * @param refreshToken Refresh token to use when renewing + */ + refreshIdToken(refreshToken: string): ng.IPromise; + + /** + * Renews the Id Token with the same scopes as the original token + * @param id_token Id Token + */ + renewIdToken(id_token: string): ng.IPromise; + + /** + * Logs in a user, returning tokens and profile information + * @param options Options to bypass displaying the Lock UI + * @param successCallback Callback on successful login + * @param errorCallback Callback on failed login + */ + signin(options?: IAuth0Options, successCallback?: ISuccessCallback, errorCallback?: IErrorCallback): void; + + /** + * Displays Lock in signup mode, and logs the user in immediately after a successful signup. + * @param options Options to bypass displaying the Lock UI + * @param successCallback Callback on successful signup + * @param errorCallback Callback on failed signup + */ + signup(options?: IAuth0Options, successCallback?: ISuccessCallback, errorCallback?: IErrorCallback): void; + + /** + * Performs the "forgot your password" flow. + * @param options Options to bypass displaying the Lock UI + * @param successCallback Callback on successful reset + * @param errorCallback Callback on failed reset + */ + reset(options?: IAuth0Options, successCallback?: ISuccessCallback, errorCallback?: IErrorCallback): void; + + /** + * Validates the user + * @param options Options to bypass displaying the Lock UI + * @param successCallback Callback on successful validation + * @param errorCallback Callback on failed validation + */ + validateUser(options: IAuth0Options, successCallback?: ISuccessCallback, errorCallback?: IErrorCallback): void; + + /** + * Logs the user out locally by deleting their token from local storage. + */ + signout(): void; + + /** + * Reauthenticates the user by using a stored profile and token without going through the login flow. + * @param profile Profile of the user + * @param idToken Id token + * @param accessToken Access token + * @param state State + * @param refreshToken Flag to indicate refreshing the token + */ + authenticate(profile?: any, idToken?: string, accessToken?: string, state?: any, refreshToken?: boolean): ng.IPromise; + + /** + * Gets the user's profile + * @param idToken Id token + */ + getProfile(idToken?: string): ng.IPromise; + + // Properties + + accessToken: string; + idToken: string; + profile: any; + isAuthenticated: boolean; + config: any; + } + + interface IAuth0ServiceProvider { + /** + * Configures the auth service + * @param options Client options passed into Auth0 + */ + init(options: IAuth0ClientOptions): void; + + /** + * @param event Name of the event to handle. + * @param handler Event handler + */ + on(event: string, handler: (...args: any[]) => any): void; + } +} \ No newline at end of file From db160295c893dc02f954c076b14de955da571459 Mon Sep 17 00:00:00 2001 From: repairman2003 Date: Fri, 29 Jan 2016 02:04:38 -0500 Subject: [PATCH 15/59] Fixing URL syntax typo --- auth0-angular/auth0-angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth0-angular/auth0-angular.d.ts b/auth0-angular/auth0-angular.d.ts index 1aa633c8e..5228d706b 100644 --- a/auth0-angular/auth0-angular.d.ts +++ b/auth0-angular/auth0-angular.d.ts @@ -1,6 +1,6 @@ // Type definitions for auth0-angular // Project: https://github.com/auth0/auth0-angular -// Definitions by: Matt Emory https://github.com/homesar +// Definitions by: Matt Emory // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// From 861d4f8846969b1002f8aace6faa38cb0fc3d775 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Fri, 29 Jan 2016 06:36:02 -0500 Subject: [PATCH 16/59] Change to use Module --- ss-utils/ss-utils-tests.ts | 48 +++++++++- ss-utils/ss-utils.d.ts | 192 +++++++++++++++++++------------------ 2 files changed, 143 insertions(+), 97 deletions(-) diff --git a/ss-utils/ss-utils-tests.ts b/ss-utils/ss-utils-tests.ts index 7527435b6..52ac7151b 100644 --- a/ss-utils/ss-utils-tests.ts +++ b/ss-utils/ss-utils-tests.ts @@ -20,10 +20,10 @@ function test_ssutils() { var source = new EventSource("/event-stream?channels=home,work"); $(source).handleServerEvents({ handlers: { - onConnect: function(connect:SSUtilsSSEConnect) {}, - onHeartbeat: function(msg:SSUtilsSSEHeartbeat, e:MessageEvent){}, - onJoin: function(msg:SSUtilsSSEJoin) {}, - onLeave: function(msg:SSUtilsSSELeave) {} + onConnect: function(connect:ssutils.SSEConnect) {}, + onHeartbeat: function(msg:ssutils.SSEHeartbeat, e:MessageEvent){}, + onJoin: function(msg:ssutils.SSEJoin) {}, + onLeave: function(msg:ssutils.SSELeave) {} }, receivers: { tv: { @@ -37,5 +37,45 @@ function test_ssutils() { }) .on('customEvent', function (e, msg, msgEvent) { }); + $.ss.handlers["changeChannel"]("home"); +} + +function test_jQuery_functions(){ + $("document").setFieldError("name","message"); + var map = $("form").serializeMap(); + $("form").applyErrors({errorCode:"",message:"",stackTrace:"",errors:[]}); + $("form").clearErrors(); + $("form").bindForm({ + overrideMessages: true, + messages: {"NotFound": "Not Found"}, + errorFilter: function(errorMsg, errorCode, type){} + }); + $("form").applyValues({ + "Key": "Value" + }); + $("form").bindHandlers({ + "test": function() {} + }); +} + +function test_ssutils_Static(){ + $.ss.handlers["key"] = () => 0; + $.ss.onSubmitDisable = "class"; + $.ss.validation.messages["Code"] = "Message"; + $.ss.clearAdjacentError(); + var date:Date = $.ss.todate("2001-01-01"); + var dateFmt:String = $.ss.todfmt("2001-01-01"); + dateFmt = $.ss.dfmt(new Date(2001,1,1)); + dateFmt = $.ss.dfmthm(new Date(2001,1,1)); + dateFmt = $.ss.tfmt12(new Date(2001,1,1)); + var parts:string[] = $.ss.splitOnFirst("A,B,C"); + parts = $.ss.splitOnLast("A,B,C"); + var selectedText = $.ss.getSelection(); + var qs:{ [index: string]: string } = $.ss.queryString("http://google.com?a=b&c=d"); + var relativePath = $.ss.createUrl("/path/to/{File}", {File:"file.js"}); + var readableText = $.ss.humanize("TheVariableName"); + + $.ss.listenOn = "click onmousedown"; + $.ss.eventReceivers = { "document": document }; $.ss.handlers["changeChannel"]("home"); } \ No newline at end of file diff --git a/ss-utils/ss-utils.d.ts b/ss-utils/ss-utils.d.ts index 99f4325fd..eb21b44cb 100644 --- a/ss-utils/ss-utils.d.ts +++ b/ss-utils/ss-utils.d.ts @@ -8,106 +8,112 @@ interface JQuery { setFieldError: (name: string, msg: string) => void; serializeMap: () => { [index: string]: any }; - applyErrors: (status: ResponseStatus, opt?: SSUtilsApplyErrorsOptions) => JQuery; + applyErrors: (status: ssutils.ResponseStatus, opt?: ssutils.ApplyErrorsOptions) => JQuery; clearErrors: () => JQuery; - bindForm: (opt?: SSUtilsApplyErrorsOptions) => JQuery; + bindForm: (opt?: ssutils.ApplyErrorsOptions) => JQuery; applyValues: (values: { [index: string]: string }) => JQuery; bindHandlers: (handlers: { [index: string]: Function }) => JQuery; setActiveLinks: () => JQuery; - handleServerEvents: (opt?: SSUtilsHandleServerEventsOptions) => void; -} - -interface SSUtilsValidation { - overrideMessages: boolean; - messages: { [index: string]: string }; - errorFilter: (errorMsg: string, errorCode: string, type: string) => void; -} - -interface SSUtilsValidationOptional { - overrideMessages?: boolean; - messages?: { [index: string]: string }; - errorFilter?: (errorMsg: string, errorCode: string, type: string) => void; -} - -interface SSUtilsApplyErrorsOptions extends SSUtilsValidationOptional { -} - -interface SSUtilsBindFormOptions { - validation?: SSUtilsValidationOptional; - validate?: (form: HTMLFormElement) => boolean; - onSubmitDisable?: string; - complete?: (...args: any[]) => void; - error?: (...args: any[]) => void; -} - -interface SSUtilsHandleServerEventsOptions { - handlers?: { [index: string]: Function }; - validate?: (op?: string, target?: string, msg?: string, json?: string) => boolean; - heartbeatUrl?: string; - heartbeatIntervalMs?: number; - unRegisterUrl?: string; - receivers?: { [index: string]: any }; - success?: (selector: string, msg: string, e: any) => void; -} - -interface ResponseStatus { - errorCode: string; - message: string; - stackTrace: string; - errors: ResponseError[]; -} -interface ResponseError { - errorCode: string; - fieldName: string; - message: string; -} - -interface SSUtilsStatic { - handlers: { [index: string]: Function }; - onSubmitDisable: string; - validation: SSUtilsValidation; - clearAdjacentError: () => void; - todate: (s: string) => Date; - todfmt: (s: string) => string; - dfmt: (d: Date) => string; - dfmthm: (d: Date) => string; - tfmt12: (d: Date) => string; - splitOnFirst: (s: string) => string[]; - splitOnLast: (s: string) => string[]; - getSelection: () => string; - queryString: (url: string) => { [index: string]: string }; - createUrl: (route: string, args?: any) => string; - humanize: (s: string) => string; - - listenOn: string; - eventReceivers: any; - reconnectServerEvents: (opt: SSUtilsReconnectServerEventsOptions) => any; -} - -interface SSUtilsReconnectServerEventsOptions { - url?: string; - onerror?: (...args: any[]) => void; - onmessage?: (...args: any[]) => void; - errorArgs: any[]; + handleServerEvents: (opt?: ssutils.HandleServerEventsOptions) => void; } interface JQueryStatic { - ss: SSUtilsStatic; + ss: ssutils.Static; } -interface SSUtilsSSECommand { - userId: string; - displayName: string; - channels: string; - profileUrl: string; -} -interface SSUtilsSSEHeartbeat extends SSUtilsSSECommand {} -interface SSUtilsSSEJoin extends SSUtilsSSECommand {} -interface SSUtilsSSELeave extends SSUtilsSSECommand {} -interface SSUtilsSSEConnect extends SSUtilsSSECommand { - id: string; - unRegisterUrl: string; - heartbeatUrl: string; - heartbeatIntervalMs: number; - idleTimeoutMs: number; +declare module ssutils +{ + interface Static { + handlers: { [index: string]: Function }; + onSubmitDisable: string; + validation: Validation; + clearAdjacentError: () => void; + todate: (s: string) => Date; + todfmt: (s: string) => string; + dfmt: (d: Date) => string; + dfmthm: (d: Date) => string; + tfmt12: (d: Date) => string; + splitOnFirst: (s: string) => string[]; + splitOnLast: (s: string) => string[]; + getSelection: () => string; + queryString: (url: string) => { [index: string]: string }; + createUrl: (route: string, args?: any) => string; + humanize: (s: string) => string; + + listenOn: string; + eventReceivers: any; + reconnectServerEvents: (opt: ReconnectServerEventsOptions) => any; + } + + interface Validation { + overrideMessages: boolean; + messages: { [index: string]: string }; + errorFilter: (errorMsg: string, errorCode: string, type: string) => void; + } + + interface ValidationOptional { + overrideMessages?: boolean; + messages?: { [index: string]: string }; + errorFilter?: (errorMsg: string, errorCode: string, type: string) => void; + } + + interface ApplyErrorsOptions extends ValidationOptional { + } + + interface BindFormOptions { + validation?: ValidationOptional; + validate?: (form: HTMLFormElement) => boolean; + onSubmitDisable?: string; + complete?: (...args: any[]) => void; + error?: (...args: any[]) => void; + } + + interface HandleServerEventsOptions { + handlers?: { [index: string]: Function }; + validate?: (op?: string, target?: string, msg?: string, json?: string) => boolean; + heartbeatUrl?: string; + heartbeatIntervalMs?: number; + unRegisterUrl?: string; + receivers?: { [index: string]: any }; + success?: (selector: string, msg: string, e: any) => void; + } + + interface ResponseStatus { + errorCode: string; + message: string; + stackTrace: string; + errors: ResponseError[]; + } + interface ResponseError { + errorCode: string; + fieldName: string; + message: string; + } + + interface SSECommand { + userId: string; + displayName: string; + channels: string; + profileUrl: string; + } + + interface SSEHeartbeat extends SSECommand { } + interface SSEJoin extends SSECommand { } + interface SSELeave extends SSECommand { } + + interface SSEConnect extends SSECommand { + id: string; + unRegisterUrl: string; + heartbeatUrl: string; + heartbeatIntervalMs: number; + idleTimeoutMs: number; + } + + interface ReconnectServerEventsOptions { + url?: string; + onerror?: (...args: any[]) => void; + onmessage?: (...args: any[]) => void; + errorArgs: any[]; + } } + From 8362e4f5743cdd23d632d2e9f392c91821ccf20e Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Fri, 29 Jan 2016 22:33:57 +0900 Subject: [PATCH 17/59] Fix import --- ratelimiter/ratelimiter-tests.ts | 4 ++-- ratelimiter/ratelimiter.d.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ratelimiter/ratelimiter-tests.ts b/ratelimiter/ratelimiter-tests.ts index 14d42422e..7c2f03eec 100644 --- a/ratelimiter/ratelimiter-tests.ts +++ b/ratelimiter/ratelimiter-tests.ts @@ -1,8 +1,8 @@ /// /// -import redis = require('redis'); -import Limiter = require('ratelimiter'); +import * as redis from 'redis'; +import * as Limiter from 'ratelimiter'; let id: string; let db: redis.RedisClient; diff --git a/ratelimiter/ratelimiter.d.ts b/ratelimiter/ratelimiter.d.ts index 6e9883dd5..4ea3a43fa 100644 --- a/ratelimiter/ratelimiter.d.ts +++ b/ratelimiter/ratelimiter.d.ts @@ -55,5 +55,7 @@ declare module "ratelimiter" { get(fn: (err: any, info: LimiterInfo) => void): void; } + namespace Limiter {} + export = Limiter; } From 1350c60376942b1f5c8a0f75881d1321ab2ac3c1 Mon Sep 17 00:00:00 2001 From: Hans-Georg Haberl Date: Fri, 29 Jan 2016 17:13:54 +0100 Subject: [PATCH 18/59] "url" is deprecated in interface RTCIceServer, changed to "urls' instead; --- webrtc/RTCPeerConnection-tests.ts | 4 ++-- webrtc/RTCPeerConnection.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/RTCPeerConnection-tests.ts b/webrtc/RTCPeerConnection-tests.ts index f25ad81df..b85c61806 100644 --- a/webrtc/RTCPeerConnection-tests.ts +++ b/webrtc/RTCPeerConnection-tests.ts @@ -1,8 +1,8 @@ -/// +/// /// var config: RTCConfiguration = - { iceServers: [{ url: "stun.l.google.com:19302" }] }; + { iceServers: [{ urls: "stun.l.google.com:19302" }] }; var constraints: RTCMediaConstraints = { mandatory: { offerToReceiveAudio: true, offerToReceiveVideo: true } }; diff --git a/webrtc/RTCPeerConnection.d.ts b/webrtc/RTCPeerConnection.d.ts index 0e186fd27..661b9685b 100644 --- a/webrtc/RTCPeerConnection.d.ts +++ b/webrtc/RTCPeerConnection.d.ts @@ -29,7 +29,7 @@ declare var RTCConfiguration: { }; interface RTCIceServer { - url: string; + urls: string; credential?: string; } declare var RTCIceServer: { From 1e5b5976e607b4043eb347ad3037fe104bc473d3 Mon Sep 17 00:00:00 2001 From: Hans-Georg Haberl Date: Fri, 29 Jan 2016 17:18:48 +0100 Subject: [PATCH 19/59] added getUserMedia declaration to use with adapter.js --- webrtc/MediaStream.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webrtc/MediaStream.d.ts b/webrtc/MediaStream.d.ts index 37b605592..a7bebb857 100644 --- a/webrtc/MediaStream.d.ts +++ b/webrtc/MediaStream.d.ts @@ -174,6 +174,9 @@ interface NavigatorGetUserMedia { errorCallback: (error: MediaStreamError) => void): void; } +// to use with adapter.js, see: https://github.com/webrtc/adapter +declare var getUserMedia: NavigatorGetUserMedia; + interface Navigator { getUserMedia: NavigatorGetUserMedia; From ce480b5fc34d208e6cf9b29198b8612991a1dd9e Mon Sep 17 00:00:00 2001 From: rhysd Date: Sat, 30 Jan 2016 02:07:30 +0900 Subject: [PATCH 20/59] github-electron: Fix type of 'dock' member of 'app' --- github-electron/github-electron-main-tests.ts | 3 + github-electron/github-electron.d.ts | 108 +++++++++--------- 2 files changed, 58 insertions(+), 53 deletions(-) diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index e88926d58..d74d4904a 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -166,6 +166,9 @@ var dockMenu = Menu.buildFromTemplate([ }, ]); app.dock.setMenu(dockMenu); +app.dock.setBadge('foo'); +var id = app.dock.bounce('informational'); +app.dock.cancelBounce(id); app.setUserTasks([ { diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index 4351b5aa1..97e0fb1e4 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -1048,7 +1048,7 @@ declare module Electron { * Note: This API is only available on Windows. */ setUserTasks(tasks: Task[]): void; - dock: BrowserWindow; + dock: Dock; commandLine: CommandLine; /** * This method makes your application a Single Instance Application instead of allowing @@ -1075,6 +1075,58 @@ declare module Electron { appendArgument(value: any): void; } + interface Dock { + /** + * When critical is passed, the dock icon will bounce until either the + * application becomes active or the request is canceled. + * + * When informational is passed, the dock icon will bounce for one second. + * The request, though, remains active until either the application becomes + * active or the request is canceled. + * + * Note: This API is only available on Mac. + * @param type Can be critical or informational, the default is informational. + * @returns An ID representing the request + */ + bounce(type?: string): number; + /** + * Cancel the bounce of id. + * + * Note: This API is only available on Mac. + */ + cancelBounce(id: number): void; + /** + * Sets the string to be displayed in the dock’s badging area. + * + * Note: This API is only available on Mac. + */ + setBadge(text: string): void; + /** + * Returns the badge string of the dock. + * + * Note: This API is only available on Mac. + */ + getBadge(): string; + /** + * Hides the dock icon. + * + * Note: This API is only available on Mac. + */ + hide(): void; + /** + * Shows the dock icon. + * + * Note: This API is only available on Mac. + */ + show(): void; + /** + * Sets the application dock menu. + * + * Note: This API is only available on Mac. + */ + setMenu(menu: Menu): void; + } + interface Task { /** * Path of the program to execute, usually you should specify process.execPath @@ -1106,57 +1158,7 @@ declare module Electron { */ iconIndex?: number; commandLine?: CommandLine; - dock?: { - /** - * When critical is passed, the dock icon will bounce until either the - * application becomes active or the request is canceled. - * - * When informational is passed, the dock icon will bounce for one second. - * The request, though, remains active until either the application becomes - * active or the request is canceled. - * - * Note: This API is only available on Mac. - * @param type Can be critical or informational, the default is informational. - * @returns An ID representing the request - */ - bounce(type?: string): any; - /** - * Cancel the bounce of id. - * - * Note: This API is only available on Mac. - */ - cancelBounce(id: number): void; - /** - * Sets the string to be displayed in the dock’s badging area. - * - * Note: This API is only available on Mac. - */ - setBadge(text: string): void; - /** - * Returns the badge string of the dock. - * - * Note: This API is only available on Mac. - */ - getBadge(): string; - /** - * Hides the dock icon. - * - * Note: This API is only available on Mac. - */ - hide(): void; - /** - * Shows the dock icon. - * - * Note: This API is only available on Mac. - */ - show(): void; - /** - * Sets the application dock menu. - * - * Note: This API is only available on Mac. - */ - setMenu(menu: Menu): void; - }; + dock?: Dock; } class AutoUpdater implements NodeJS.EventEmitter { @@ -1225,7 +1227,7 @@ declare module Electron { filters?: { name: string; extensions: string[]; - }[] + }[]; } /** From e5fc6154826b24cc8421298d72d7007c54a9f999 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sat, 30 Jan 2016 02:11:56 +0900 Subject: [PATCH 21/59] github-electron: Add app.dock.setIcon() API https://github.com/atom/electron/blob/master/docs/api/app.md#appdockseticonimage-os-x --- github-electron/github-electron-main-tests.ts | 1 + github-electron/github-electron.d.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index d74d4904a..5d3060e4b 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -169,6 +169,7 @@ app.dock.setMenu(dockMenu); app.dock.setBadge('foo'); var id = app.dock.bounce('informational'); app.dock.cancelBounce(id); +app.dock.setIcon('/path/to/icon.png'); app.setUserTasks([ { diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index 97e0fb1e4..d5ca18690 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -1125,6 +1125,12 @@ declare module Electron { * Note: This API is only available on Mac. */ setMenu(menu: Menu): void; + /** + * Sets the image associated with this dock icon. + * + * Note: This API is only available on Mac. + */ + setIcon(icon: NativeImage | string): void; } interface Task { From e3a7583dc379d3b178216fcd444b0ea64aed66e0 Mon Sep 17 00:00:00 2001 From: Alex Thompson Date: Fri, 29 Jan 2016 10:33:36 -0800 Subject: [PATCH 22/59] CSSProperties missing backgroundColor --- react/react.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/react/react.d.ts b/react/react.d.ts index aba285158..e9b88dde2 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -515,6 +515,8 @@ declare namespace __React { */ backgroundBlendMode?: any; + backgroundColor?: any; + backgroundComposite?: any; /** From b31d02d4f2ab679b6c962181491b3606970a34b5 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sat, 30 Jan 2016 12:03:14 +0500 Subject: [PATCH 23/59] lodash: _.differenceBy changed --- lodash/lodash-tests.ts | 187 ++++++++++++++ lodash/lodash.d.ts | 574 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 744 insertions(+), 17 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 66f0bf2ca..6762263f7 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -257,6 +257,193 @@ module TestDifference { } } +// _.differenceBy +module TestDifferenceBy { + let array: TResult[]; + let list: _.List; + let iteratee: (value: TResult) => any; + + { + let result: TResult[]; + + result = _.differenceBy(array, array); + result = _.differenceBy(array, list, array); + result = _.differenceBy(array, array, list, array); + result = _.differenceBy(array, list, array, list, array); + result = _.differenceBy(array, array, list, array, list, array); + result = _.differenceBy(array, list, array, list, array, list, array); + + result = _.differenceBy(array, array, iteratee); + result = _.differenceBy(array, list, array, iteratee); + result = _.differenceBy(array, array, list, array, iteratee); + result = _.differenceBy(array, list, array, list, array, iteratee); + result = _.differenceBy(array, array, list, array, list, array, iteratee); + result = _.differenceBy(array, list, array, list, array, list, array, iteratee); + + result = _.differenceBy(array, array, 'a'); + result = _.differenceBy(array, list, array, 'a'); + result = _.differenceBy(array, array, list, array, 'a'); + result = _.differenceBy(array, list, array, list, array, 'a'); + result = _.differenceBy(array, array, list, array, list, array, 'a'); + result = _.differenceBy(array, list, array, list, array, list, array, 'a'); + + result = _.differenceBy(array, array, {a: 1}); + result = _.differenceBy(array, list, array, {a: 1}); + result = _.differenceBy(array, array, list, array, {a: 1}); + result = _.differenceBy(array, list, array, list, array, {a: 1}); + result = _.differenceBy(array, array, list, array, list, array, {a: 1}); + result = _.differenceBy(array, list, array, list, array, list, array, {a: 1}); + + result = _.differenceBy(list, list); + result = _.differenceBy(list, array, list); + result = _.differenceBy(list, list, array, list); + result = _.differenceBy(list, array, list, array, list); + result = _.differenceBy(list, list, array, list, array, list); + result = _.differenceBy(list, array, list, array, list, array, list); + + result = _.differenceBy(list, list, iteratee); + result = _.differenceBy(list, array, list, iteratee); + result = _.differenceBy(list, list, array, list, iteratee); + result = _.differenceBy(list, array, list, array, list, iteratee); + result = _.differenceBy(list, list, array, list, array, list, iteratee); + result = _.differenceBy(list, array, list, array, list, array, list, iteratee); + + result = _.differenceBy(list, list, 'a'); + result = _.differenceBy(list, array, list, 'a'); + result = _.differenceBy(list, list, array, list, 'a'); + result = _.differenceBy(list, array, list, array, list, 'a'); + result = _.differenceBy(list, list, array, list, array, list, 'a'); + result = _.differenceBy(list, array, list, array, list, array, list, 'a'); + + result = _.differenceBy(list, list, {a: 1}); + result = _.differenceBy(list, array, list, {a: 1}); + result = _.differenceBy(list, list, array, list, {a: 1}); + result = _.differenceBy(list, array, list, array, list, {a: 1}); + result = _.differenceBy(list, list, array, list, array, list, {a: 1}); + result = _.differenceBy(list, array, list, array, list, array, list, {a: 1}); + } + + { + let result: _.LoDashImplicitArrayWrapper; + + result = _(array).differenceBy(array); + result = _(array).differenceBy(list, array); + result = _(array).differenceBy(array, list, array); + result = _(array).differenceBy(list, array, list, array); + result = _(array).differenceBy(array, list, array, list, array); + result = _(array).differenceBy(list, array, list, array, list, array); + + result = _(array).differenceBy(array, iteratee); + result = _(array).differenceBy(list, array, iteratee); + result = _(array).differenceBy(array, list, array, iteratee); + result = _(array).differenceBy(list, array, list, array, iteratee); + result = _(array).differenceBy(array, list, array, list, array, iteratee); + result = _(array).differenceBy(list, array, list, array, list, array, iteratee); + + result = _(array).differenceBy(array, 'a'); + result = _(array).differenceBy(list, array, 'a'); + result = _(array).differenceBy(array, list, array, 'a'); + result = _(array).differenceBy(list, array, list, array, 'a'); + result = _(array).differenceBy(array, list, array, list, array, 'a'); + result = _(array).differenceBy(list, array, list, array, list, array, 'a'); + + result = _(array).differenceBy(array, {a: 1}); + result = _(array).differenceBy(list, array, {a: 1}); + result = _(array).differenceBy(array, list, array, {a: 1}); + result = _(array).differenceBy(list, array, list, array, {a: 1}); + result = _(array).differenceBy(array, list, array, list, array, {a: 1}); + result = _(array).differenceBy(list, array, list, array, list, array, {a: 1}); + + result = _(list).differenceBy(list); + result = _(list).differenceBy(array, list); + result = _(list).differenceBy(list, array, list); + result = _(list).differenceBy(array, list, array, list); + result = _(list).differenceBy(list, array, list, array, list); + result = _(list).differenceBy(array, list, array, list, array, list); + + result = _(list).differenceBy(list, iteratee); + result = _(list).differenceBy(array, list, iteratee); + result = _(list).differenceBy(list, array, list, iteratee); + result = _(list).differenceBy(array, list, array, list, iteratee); + result = _(list).differenceBy(list, array, list, array, list, iteratee); + result = _(list).differenceBy(array, list, array, list, array, list, iteratee); + + result = _(list).differenceBy(list, 'a'); + result = _(list).differenceBy(array, list, 'a'); + result = _(list).differenceBy(list, array, list, 'a'); + result = _(list).differenceBy(array, list, array, list, 'a'); + result = _(list).differenceBy(list, array, list, array, list, 'a'); + result = _(list).differenceBy(array, list, array, list, array, list, 'a'); + + result = _(list).differenceBy(list, {a: 1}); + result = _(list).differenceBy(array, list, {a: 1}); + result = _(list).differenceBy(list, array, list, {a: 1}); + result = _(list).differenceBy(array, list, array, list, {a: 1}); + result = _(list).differenceBy(list, array, list, array, list, {a: 1}); + result = _(list).differenceBy(array, list, array, list, array, list, {a: 1}); + } + + { + let result: _.LoDashExplicitArrayWrapper; + + result = _(array).chain().differenceBy(array); + result = _(array).chain().differenceBy(list, array); + result = _(array).chain().differenceBy(array, list, array); + result = _(array).chain().differenceBy(list, array, list, array); + result = _(array).chain().differenceBy(array, list, array, list, array); + result = _(array).chain().differenceBy(list, array, list, array, list, array); + + result = _(array).chain().differenceBy(array, iteratee); + result = _(array).chain().differenceBy(list, array, iteratee); + result = _(array).chain().differenceBy(array, list, array, iteratee); + result = _(array).chain().differenceBy(list, array, list, array, iteratee); + result = _(array).chain().differenceBy(array, list, array, list, array, iteratee); + result = _(array).chain().differenceBy(list, array, list, array, list, array, iteratee); + + result = _(array).chain().differenceBy(array, 'a'); + result = _(array).chain().differenceBy(list, array, 'a'); + result = _(array).chain().differenceBy(array, list, array, 'a'); + result = _(array).chain().differenceBy(list, array, list, array, 'a'); + result = _(array).chain().differenceBy(array, list, array, list, array, 'a'); + result = _(array).chain().differenceBy(list, array, list, array, list, array, 'a'); + + result = _(array).chain().differenceBy(array, {a: 1}); + result = _(array).chain().differenceBy(list, array, {a: 1}); + result = _(array).chain().differenceBy(array, list, array, {a: 1}); + result = _(array).chain().differenceBy(list, array, list, array, {a: 1}); + result = _(array).chain().differenceBy(array, list, array, list, array, {a: 1}); + result = _(array).chain().differenceBy(list, array, list, array, list, array, {a: 1}); + + result = _(list).chain().differenceBy(list); + result = _(list).chain().differenceBy(array, list); + result = _(list).chain().differenceBy(list, array, list); + result = _(list).chain().differenceBy(array, list, array, list); + result = _(list).chain().differenceBy(list, array, list, array, list); + result = _(list).chain().differenceBy(array, list, array, list, array, list); + + result = _(list).chain().differenceBy(list, iteratee); + result = _(list).chain().differenceBy(array, list, iteratee); + result = _(list).chain().differenceBy(list, array, list, iteratee); + result = _(list).chain().differenceBy(array, list, array, list, iteratee); + result = _(list).chain().differenceBy(list, array, list, array, list, iteratee); + result = _(list).chain().differenceBy(array, list, array, list, array, list, iteratee); + + result = _(list).chain().differenceBy(list, 'a'); + result = _(list).chain().differenceBy(array, list, 'a'); + result = _(list).chain().differenceBy(list, array, list, 'a'); + result = _(list).chain().differenceBy(array, list, array, list, 'a'); + result = _(list).chain().differenceBy(list, array, list, array, list, 'a'); + result = _(list).chain().differenceBy(array, list, array, list, array, list, 'a'); + + result = _(list).chain().differenceBy(list, {a: 1}); + result = _(list).chain().differenceBy(array, list, {a: 1}); + result = _(list).chain().differenceBy(list, array, list, {a: 1}); + result = _(list).chain().differenceBy(array, list, array, list, {a: 1}); + result = _(list).chain().differenceBy(list, array, list, array, list, {a: 1}); + result = _(list).chain().differenceBy(array, list, array, list, array, list, {a: 1}); + } +} + // _.drop { let array: TResult[]; diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index aaa8dc7e3..fed34bf00 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -548,28 +548,568 @@ declare module _ { difference(...values: (TValue[]|List)[]): LoDashExplicitArrayWrapper; } - //_.differenceBy DUMMY + //_.differenceBy interface LoDashStatic { /** - * Creates an array of unique `array` values not included in the other - * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. + * This method is like _.difference except that it accepts iteratee which is invoked for each element of array + * and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one + * argument: (value). * - * @static - * @memberOf _ - * @category Array - * @param {Array} array The array to inspect. - * @param {...Array} [values] The values to exclude. - * @returns {Array} Returns the new array of filtered values. - * @example - * - * _.difference([3, 2, 1], [4, 2]); - * // => [3, 1] + * @param array The array to inspect. + * @param values The values to exclude. + * @param iteratee The iteratee invoked per element. + * @returns Returns the new array of filtered values. */ - differenceBy( - array: any[]|List, + differenceBy( + array: T[]|List, + values?: T[]|List, + iteratee?: ((value: T) => any)|string + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values?: T[]|List, + iteratee?: W + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + iteratee?: ((value: T) => any)|string + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + iteratee?: W + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: ((value: T) => any)|string + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: W + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: W + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: ((value: T) => any)|string + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: ((value: T) => any)|string + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: W + ): T[]; + + /** + * @see _.differenceBy + */ + differenceBy( + array: T[]|List, ...values: any[] - ): any[]; + ): T[]; + } + + interface LoDashImplicitArrayWrapper { + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + ...values: any[] + ): LoDashImplicitArrayWrapper; + } + + interface LoDashImplicitObjectWrapper { + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: W + ): LoDashImplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + ...values: any[] + ): LoDashImplicitArrayWrapper; + } + + interface LoDashExplicitArrayWrapper { + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + ...values: any[] + ): LoDashExplicitArrayWrapper; + } + + interface LoDashExplicitObjectWrapper { + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: ((value: T) => any)|string + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + values1?: T[]|List, + values2?: T[]|List, + values3?: T[]|List, + values4?: T[]|List, + values5?: T[]|List, + iteratee?: W + ): LoDashExplicitArrayWrapper; + + /** + * @see _.differenceBy + */ + differenceBy( + ...values: any[] + ): LoDashExplicitArrayWrapper; } //_.differenceWith DUMMY From 306df6f069a4443866a7936192bf17f9091cbfc5 Mon Sep 17 00:00:00 2001 From: Isman Usoh Date: Sat, 30 Jan 2016 17:04:47 +0700 Subject: [PATCH 24/59] Rename RoutingContext -> RouterContext https://github.com/rackt/react-router/commit/c0363abbe4f98c4534d226a0acebce88be4a41b5 --- react-router/react-router.d.ts | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/react-router/react-router.d.ts b/react-router/react-router.d.ts index aba062716..3abb59d33 100644 --- a/react-router/react-router.d.ts +++ b/react-router/react-router.d.ts @@ -110,17 +110,22 @@ declare namespace ReactRouter { const IndexLink: Link - interface RoutingContextProps extends React.Props { - history: H.History + interface RouterContextProps extends React.Props { + history?: H.History + router: Router createElement: (component: RouteComponent, props: Object) => any location: H.Location routes: RouteConfig params: Params components?: RouteComponent[] } - interface RoutingContext extends React.ComponentClass {} - interface RoutingContextElement extends React.ReactElement {} - const RoutingContext: RoutingContext + interface RouterContext extends React.ComponentClass {} + interface RouterContextElement extends React.ReactElement { + history?: H.History + location: H.Location + router?: Router + } + const RouterContext: RouterContext /* components (configuration) */ @@ -335,9 +340,9 @@ declare module "react-router/lib/RouteUtils" { } -declare module "react-router/lib/RoutingContext" { +declare module "react-router/lib/RouterContext" { - export default ReactRouter.RoutingContext + export default ReactRouter.RouterContext } @@ -418,7 +423,7 @@ declare module "react-router" { import { formatPattern } from "react-router/lib/PatternUtils" - import RoutingContext from "react-router/lib/RoutingContext" + import RouterContext from "react-router/lib/RouterContext" import PropTypes from "react-router/lib/PropTypes" @@ -459,7 +464,7 @@ declare module "react-router" { useRoutes, createRoutes, formatPattern, - RoutingContext, + RouterContext, PropTypes, match } From 07feae11780495b90145451d48d4a50923762ef1 Mon Sep 17 00:00:00 2001 From: Isman Usoh Date: Sat, 30 Jan 2016 17:29:23 +0700 Subject: [PATCH 25/59] Update react-router.d.ts --- react-router/react-router.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-router/react-router.d.ts b/react-router/react-router.d.ts index 3abb59d33..abed5eb65 100644 --- a/react-router/react-router.d.ts +++ b/react-router/react-router.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-router v1.0.0 +// Type definitions for react-router v2.0.0-rc5 // Project: https://github.com/rackt/react-router // Definitions by: Sergey Buturlakin , Yuichi Murata , Václav Ostrožlík // Definitions: https://github.com/borisyankov/DefinitelyTyped From 5fd34b988f985059227d7ff08fb7704edd195620 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sat, 30 Jan 2016 07:37:43 -0500 Subject: [PATCH 26/59] update to export namespace in ambient module --- ss-utils/ss-utils.d.ts | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/ss-utils/ss-utils.d.ts b/ss-utils/ss-utils.d.ts index eb21b44cb..3d6ddfbf4 100644 --- a/ss-utils/ss-utils.d.ts +++ b/ss-utils/ss-utils.d.ts @@ -5,24 +5,8 @@ /// -interface JQuery { - setFieldError: (name: string, msg: string) => void; - serializeMap: () => { [index: string]: any }; - applyErrors: (status: ssutils.ResponseStatus, opt?: ssutils.ApplyErrorsOptions) => JQuery; - clearErrors: () => JQuery; - bindForm: (opt?: ssutils.ApplyErrorsOptions) => JQuery; - applyValues: (values: { [index: string]: string }) => JQuery; - bindHandlers: (handlers: { [index: string]: Function }) => JQuery; - setActiveLinks: () => JQuery; - handleServerEvents: (opt?: ssutils.HandleServerEventsOptions) => void; -} +declare namespace ssutils { -interface JQueryStatic { - ss: ssutils.Static; -} - -declare module ssutils -{ interface Static { handlers: { [index: string]: Function }; onSubmitDisable: string; @@ -96,11 +80,11 @@ declare module ssutils channels: string; profileUrl: string; } - + interface SSEHeartbeat extends SSECommand { } interface SSEJoin extends SSECommand { } interface SSELeave extends SSECommand { } - + interface SSEConnect extends SSECommand { id: string; unRegisterUrl: string; @@ -117,3 +101,22 @@ declare module ssutils } } +interface JQuery { + setFieldError: (name: string, msg: string) => void; + serializeMap: () => { [index: string]: any }; + applyErrors: (status: ssutils.ResponseStatus, opt?: ssutils.ApplyErrorsOptions) => JQuery; + clearErrors: () => JQuery; + bindForm: (opt?: ssutils.ApplyErrorsOptions) => JQuery; + applyValues: (values: { [index: string]: string }) => JQuery; + bindHandlers: (handlers: { [index: string]: Function }) => JQuery; + setActiveLinks: () => JQuery; + handleServerEvents: (opt?: ssutils.HandleServerEventsOptions) => void; +} + +interface JQueryStatic { + ss: ssutils.Static; +} + +declare module "ss-utils" { + export = ssutils; +} \ No newline at end of file From 9b101f7c98f24fd552c00eb67995df95ac397e1b Mon Sep 17 00:00:00 2001 From: Marcel Ernst Date: Sat, 30 Jan 2016 19:56:32 +0100 Subject: [PATCH 27/59] add definitions for pi-spi --- pi-spi/pi-spi-tests.ts | 29 ++++++++++++++++++++++++++ pi-spi/pi-spi.d.ts | 46 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 pi-spi/pi-spi-tests.ts create mode 100644 pi-spi/pi-spi.d.ts diff --git a/pi-spi/pi-spi-tests.ts b/pi-spi/pi-spi-tests.ts new file mode 100644 index 000000000..9ec08f1ba --- /dev/null +++ b/pi-spi/pi-spi-tests.ts @@ -0,0 +1,29 @@ +/// + +import * as piSPI from 'pi-spi'; + +var spi:piSPI.SPI = piSPI.initialize("test"); +var b:Buffer = new Buffer("Hello, World!"); +var cb = function(error:Error, data:Buffer):void { }; + +spi.bitOrder(piSPI.order.LSB_FIRST); +spi.bitOrder(piSPI.order.MSB_FIRST); +console.log(spi.bitOrder()); + + +spi.dataMode(piSPI.mode.CPHA); +spi.dataMode(piSPI.mode.CPOL); +console.log(spi.dataMode()); + + +spi.clockSpeed(4e6); +console.log(spi.clockSpeed()); + + +spi.write(b, cb); +spi.read(13, cb); + +spi.transfer(b, cb); +spi.transfer(b, 13, cb); + +spi.close(); diff --git a/pi-spi/pi-spi.d.ts b/pi-spi/pi-spi.d.ts new file mode 100644 index 000000000..c535bd0bb --- /dev/null +++ b/pi-spi/pi-spi.d.ts @@ -0,0 +1,46 @@ +// Type definitions for pi-spi +// Project: https://github.com/natevw/pi-spi +// Definitions by: Marcel Ernst +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace __PI_SPI { + + enum mode { + CPHA = 0x01, + CPOL = 0x02 + } + + enum order { + MSB_FIRST = 0, + LSB_FIRST = 1 + } + + function initialize(device:string):__PI_SPI.SPI; + + class SPI { + clockSpeed():number; + clockSpeed(speed:number):void; + + dataMode():number; + dataMode(mode:mode):void; + + bitOrder():number; + bitOrder(order:order):void; + + + write(writebuf:Buffer, cb:(error:Error,data:Buffer) => void):void; + read(readcount:number, cb:(error:Error,data:Buffer) => void):void; + + transfer(writebuf:Buffer, cb:(error:Error,data:Buffer) => void ):void; + transfer(writebuf:Buffer, readcount:number, cb:(error:Error,data:Buffer) => void ):void; + + close():void; + } +} + + +declare module "pi-spi" { + export = __PI_SPI; +} \ No newline at end of file From ce56f8e2f4a2a169cb84d3a7af30b5c1528f67b2 Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 29 Nov 2015 15:12:26 +0200 Subject: [PATCH 28/59] Update stream() signature and add tests --- browser-sync/browser-sync-tests.ts | 23 +++++++++++++++++++++++ browser-sync/browser-sync.d.ts | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/browser-sync/browser-sync-tests.ts b/browser-sync/browser-sync-tests.ts index 210a8cf1b..e54439afb 100644 --- a/browser-sync/browser-sync-tests.ts +++ b/browser-sync/browser-sync-tests.ts @@ -95,3 +95,26 @@ function browserSyncInit(): browserSync.BrowserSyncInstance { } var browser = browserSyncInit(); browser.exit(); + +// Stream method. + +// -- No options. +browser.stream(); + +// -- "once" option. +browser.stream({once: true}); + +// -- "match" option (string). +browser.stream({match: "**/*.js"}); + +// -- "match" option (RegExp). +browser.stream({match: /\.js$/}); + +// -- "match" option (function). +browser.stream({match: (testString) => true}); + +// -- "match" option (array). +browser.stream({match: ["**/*.js", /\.js$/, (testString) => true]}); + +// -- Both options. +browser.stream({once: true, match: ["**/*.js", /\.js$/, (testString) => true]}); diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 9d4cbcce3..05dcaaaa3 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -365,7 +365,7 @@ declare module "browser-sync" { * The stream method returns a transform stream and can act once or on many files. * @param opts Configuration for the stream method */ - stream(opts?: { once: boolean }): NodeJS.ReadWriteStream; + stream(opts?: { once?: boolean, match?: string | RegExp | ((testString: string) => boolean) | (string | RegExp | ((testString: string) => boolean))[] }): NodeJS.ReadWriteStream; /** * Helper method for browser notifications * @param message Can be a simple message such as 'Connected' or HTML From 9f1a17eef4cd3d1b18c2fd9e6eed6a2cbb3c4a36 Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 29 Nov 2015 15:41:30 +0200 Subject: [PATCH 29/59] Add "instances" array + test --- browser-sync/browser-sync-tests.ts | 2 ++ browser-sync/browser-sync.d.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/browser-sync/browser-sync-tests.ts b/browser-sync/browser-sync-tests.ts index e54439afb..bb4f8c7c4 100644 --- a/browser-sync/browser-sync-tests.ts +++ b/browser-sync/browser-sync-tests.ts @@ -78,6 +78,8 @@ evt.on("init", function () { browserSync(config); +var instance = browserSync.instances[0]; + var bs = browserSync.create(); bs.init({ diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 05dcaaaa3..1ffea1c0c 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -328,6 +328,8 @@ declare module "browser-sync" { * @param name the identifier used for retrieval */ get(name: string): BrowserSyncInstance; + + instances: BrowserSyncInstance[]; } interface BrowserSyncInstance { From 149185d2fa4401af1fe15cd9a94bae22fe9f3e57 Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 29 Nov 2015 15:43:59 +0200 Subject: [PATCH 30/59] Remove trailing whitespace and add missing semi-colon --- browser-sync/browser-sync-tests.ts | 2 +- browser-sync/browser-sync.d.ts | 52 +++++++++++++++--------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/browser-sync/browser-sync-tests.ts b/browser-sync/browser-sync-tests.ts index bb4f8c7c4..f79dd517b 100644 --- a/browser-sync/browser-sync-tests.ts +++ b/browser-sync/browser-sync-tests.ts @@ -87,7 +87,7 @@ bs.init({ }); bs.reload(); - + function browserSyncInit(): browserSync.BrowserSyncInstance { var browser = browserSync.create(); browser.init(); diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 1ffea1c0c..fe4498e8f 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -14,16 +14,16 @@ declare module "browser-sync" { namespace browserSync { interface Options { /** - * Browsersync includes a user-interface that is accessed via a separate port. The UI allows to controls + * Browsersync includes a user-interface that is accessed via a separate port. The UI allows to controls * all devices, push sync updates and much more. - * + * * port - Default: 3001 * weinre.port - Default: 8080 * Note: requires at least version 2.0.0 */ ui?: UIOptions; /** - * Browsersync can watch your files as you work. Changes you make will either be injected into the page (CSS + * Browsersync can watch your files as you work. Changes you make will either be injected into the page (CSS * & images) or will cause all browsers to do a full-page refresh. See anymatch for more information on glob * patterns. * Default: false @@ -55,14 +55,14 @@ declare module "browser-sync" { */ port?: number; /** - * Add additional directories from which static files should be served. + * Add additional directories from which static files should be served. * Should only be used in proxy or snippet mode. * Default: [] * Note: requires at least version 2.8.0 */ serveStatic?: string[]; /** - * Enable https for localhost development. + * Enable https for localhost development. * Note - this is not needed for proxy option as it will be inferred from your target url. * Note: requires at least version 1.3.0 */ @@ -102,7 +102,7 @@ declare module "browser-sync" { */ logSnippet?: boolean; /** - * You can control how the snippet is injected onto each page via a custom regex + function. + * You can control how the snippet is injected onto each page via a custom regex + function. * You can also provide patterns for certain urls that should be ignored from the snippet injection. * Note: requires at least version 2.0.0 */ @@ -119,13 +119,13 @@ declare module "browser-sync" { */ tunnel?: string | boolean; /** - * Some features of Browsersync (such as xip & tunnel) require an internet connection, but if you're + * Some features of Browsersync (such as xip & tunnel) require an internet connection, but if you're * working offline, you can reduce start-up time by setting this option to false */ online?: boolean; /** * Default: true - * Decide which URL to open automatically when Browsersync starts. Defaults to "local" if none set. + * Decide which URL to open automatically when Browsersync starts. Defaults to "local" if none set. * Can be true, local, external, ui, ui-external, tunnel or false */ open?: string | boolean; @@ -135,7 +135,7 @@ declare module "browser-sync" { */ browser?: string | string[]; /** - * Requires an internet connection - useful for services such as Typekit as it allows you to configure + * Requires an internet connection - useful for services such as Typekit as it allows you to configure * domains such as *.xip.io in your kit settings * Default: false */ @@ -154,14 +154,14 @@ declare module "browser-sync" { * scrollProportionally: false // Sync viewports to TOP position * Default: true */ - scrollProportionally?: boolean + scrollProportionally?: boolean; /** * How often to send scroll events * Default: 0 */ scrollThrottle?: number; /** - * Decide which technique should be used to restore scroll position following a reload. + * Decide which technique should be used to restore scroll position following a reload. * Can be window.name or cookie * Default: 'window.name' */ @@ -175,13 +175,13 @@ declare module "browser-sync" { /** * Default: [] * Note: requires at least version 2.9.0 - * Sync the scroll position of any element on the page - where any scrolled element will cause - * all others to match scroll position. This is helpful when a breakpoint alters which element + * Sync the scroll position of any element on the page - where any scrolled element will cause + * all others to match scroll position. This is helpful when a breakpoint alters which element * is actually scrolling */ scrollElementMapping?: string[]; /** - * Time, in milliseconds, to wait before instructing the browser to reload/inject following a file + * Time, in milliseconds, to wait before instructing the browser to reload/inject following a file * change event * Default: 0 */ @@ -227,7 +227,7 @@ declare module "browser-sync" { */ timestamps?: boolean; /** - * Alter the script path for complete control over where the Browsersync Javascript is served + * Alter the script path for complete control over where the Browsersync Javascript is served * from. Whatever you return from this function will be used as the script path. * Note: requires at least version 1.5.0 */ @@ -250,7 +250,7 @@ declare module "browser-sync" { [path: string]: T; } - interface UIOptions { + interface UIOptions { /** set the default port */ port?: number; /** set the default weinre port */ @@ -266,9 +266,9 @@ declare module "browser-sync" { directory?: boolean; /** set index filename */ index?: string; - /** - * key-value object hash, where the key is the url to match, - * and the value is the folder to serve (relative to your working directory) + /** + * key-value object hash, where the key is the url to match, + * and the value is the folder to serve (relative to your working directory) */ routes?: Hash; /** configure custom middleware */ @@ -314,7 +314,7 @@ declare module "browser-sync" { interface BrowserSyncStatic extends BrowserSyncInstance { /** - * Start the Browsersync service. This will launch a server, proxy or start the snippet mode + * Start the Browsersync service. This will launch a server, proxy or start the snippet mode * depending on your use-case. */ (config?: Options, callback?: (err: Error, bs: Object) => any): BrowserSyncInstance; @@ -336,30 +336,30 @@ declare module "browser-sync" { /** the name of this instance of browser-sync */ name: string; /** - * Start the Browsersync service. This will launch a server, proxy or start the snippet mode + * Start the Browsersync service. This will launch a server, proxy or start the snippet mode * depending on your use-case. */ init(config?: Options, callback?: (err: Error, bs: Object) => any): BrowserSyncInstance; /** * Reload the browser - * The reload method will inform all browsers about changed files and will either cause the browser + * The reload method will inform all browsers about changed files and will either cause the browser * to refresh, or inject the files where possible. */ reload(): void; /** * Reload a single file - * The reload method will inform all browsers about changed files and will either cause the browser + * The reload method will inform all browsers about changed files and will either cause the browser * to refresh, or inject the files where possible. */ reload(file: string): void; /** * Reload multiple files - * The reload method will inform all browsers about changed files and will either cause the browser + * The reload method will inform all browsers about changed files and will either cause the browser * to refresh, or inject the files where possible. */ reload(files: string[]): void; /** - * The reload method will inform all browsers about changed files and will either cause the browser + * The reload method will inform all browsers about changed files and will either cause the browser * to refresh, or inject the files where possible. */ reload(options: { stream: boolean }): NodeJS.ReadWriteStream; @@ -392,7 +392,7 @@ declare module "browser-sync" { */ resume(): void; /** - * The internal Event Emitter used by the running Browsersync instance (if there is one). You can use + * The internal Event Emitter used by the running Browsersync instance (if there is one). You can use * this to emit your own events, such as changed files, logging etc. */ emitter: NodeJS.EventEmitter; From 620f9cc215be5377c03d0f66c609fe46149f08f2 Mon Sep 17 00:00:00 2001 From: Glen Date: Tue, 8 Dec 2015 09:45:34 +0200 Subject: [PATCH 31/59] Refactor (add MatchTest type and StreamOptions interface) --- browser-sync/browser-sync.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index fe4498e8f..6f46d6c94 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -312,6 +312,13 @@ declare module "browser-sync" { fn: (match: string) => string; } + type MatchTest = (string | RegExp | ((testString: string) => boolean)); + + interface StreamOptions { + once?: boolean; + match?: MatchTest | MatchTest[]; + } + interface BrowserSyncStatic extends BrowserSyncInstance { /** * Start the Browsersync service. This will launch a server, proxy or start the snippet mode @@ -367,7 +374,7 @@ declare module "browser-sync" { * The stream method returns a transform stream and can act once or on many files. * @param opts Configuration for the stream method */ - stream(opts?: { once?: boolean, match?: string | RegExp | ((testString: string) => boolean) | (string | RegExp | ((testString: string) => boolean))[] }): NodeJS.ReadWriteStream; + stream(opts?: StreamOptions): NodeJS.ReadWriteStream; /** * Helper method for browser notifications * @param message Can be a simple message such as 'Connected' or HTML From b86d447665ed166ddea983d6878d7b120ee45daf Mon Sep 17 00:00:00 2001 From: Glen Date: Tue, 22 Dec 2015 10:43:47 +0200 Subject: [PATCH 32/59] Remove "instances" array + test --- browser-sync/browser-sync-tests.ts | 2 -- browser-sync/browser-sync.d.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/browser-sync/browser-sync-tests.ts b/browser-sync/browser-sync-tests.ts index f79dd517b..2d254ac3d 100644 --- a/browser-sync/browser-sync-tests.ts +++ b/browser-sync/browser-sync-tests.ts @@ -78,8 +78,6 @@ evt.on("init", function () { browserSync(config); -var instance = browserSync.instances[0]; - var bs = browserSync.create(); bs.init({ diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 6f46d6c94..58c1dbf65 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -335,8 +335,6 @@ declare module "browser-sync" { * @param name the identifier used for retrieval */ get(name: string): BrowserSyncInstance; - - instances: BrowserSyncInstance[]; } interface BrowserSyncInstance { From 3467c722bdb2fab166ec142071c2b2e62171d17c Mon Sep 17 00:00:00 2001 From: Glen Date: Thu, 7 Jan 2016 16:23:59 +0200 Subject: [PATCH 33/59] Add new "has" method --- browser-sync/browser-sync-tests.ts | 2 ++ browser-sync/browser-sync.d.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/browser-sync/browser-sync-tests.ts b/browser-sync/browser-sync-tests.ts index 2d254ac3d..822c941d9 100644 --- a/browser-sync/browser-sync-tests.ts +++ b/browser-sync/browser-sync-tests.ts @@ -78,6 +78,8 @@ evt.on("init", function () { browserSync(config); +var has = browserSync.has("My server"); + var bs = browserSync.create(); bs.init({ diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 58c1dbf65..50c00d9b9 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -335,6 +335,11 @@ declare module "browser-sync" { * @param name the identifier used for retrieval */ get(name: string): BrowserSyncInstance; + /** + * Check if an instance has been created. + * @param name the name of the instance + */ + has(name: string): boolean; } interface BrowserSyncInstance { From d9b5b35ba3a79ac778c5890531393442439df5dd Mon Sep 17 00:00:00 2001 From: Glen Date: Sat, 30 Jan 2016 21:44:02 +0200 Subject: [PATCH 34/59] Use Micromatch Pattern type --- browser-sync/browser-sync.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 50c00d9b9..6640090bc 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -5,11 +5,13 @@ /// /// +/// declare module "browser-sync" { import chokidar = require("chokidar"); import fs = require("fs"); import http = require("http"); + import mm = require("micromatch"); namespace browserSync { interface Options { @@ -312,11 +314,9 @@ declare module "browser-sync" { fn: (match: string) => string; } - type MatchTest = (string | RegExp | ((testString: string) => boolean)); - interface StreamOptions { once?: boolean; - match?: MatchTest | MatchTest[]; + match?: mm.Pattern | mm.Pattern[]; } interface BrowserSyncStatic extends BrowserSyncInstance { From 8d68e9b5377c2b44f6b9773fab8a1111f03942f8 Mon Sep 17 00:00:00 2001 From: vvakame Date: Sun, 31 Jan 2016 13:39:09 +0900 Subject: [PATCH 35/59] update version of definition-tester --- npm-shrinkwrap.json | 80 ++++++++++++++++++++++++--------------------- package.json | 4 +-- 2 files changed, 45 insertions(+), 39 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 6dc63bfb0..77fb737ab 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -13,9 +13,9 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz" }, "bluebird": { - "version": "2.10.2", - "from": "bluebird@>=2.10.1 <3.0.0", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.10.2.tgz" + "version": "3.1.5", + "from": "bluebird@>=3.1.2 <4.0.0", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.1.5.tgz" }, "brace-expansion": { "version": "1.1.2", @@ -33,19 +33,25 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" }, "definition-header": { - "version": "0.1.0", - "from": "definition-header@>=0.1.0 <0.2.0", - "resolved": "https://registry.npmjs.org/definition-header/-/definition-header-0.1.0.tgz" + "version": "0.3.0", + "from": "definition-header@>=0.3.0 <0.4.0", + "resolved": "https://registry.npmjs.org/definition-header/-/definition-header-0.3.0.tgz" }, "definition-tester": { - "version": "0.3.0", - "from": "definition-tester@0.3.0", - "resolved": "https://registry.npmjs.org/definition-tester/-/definition-tester-0.3.0.tgz" + "version": "0.4.0", + "from": "definition-tester@0.4.0" }, "findup-sync": { "version": "0.3.0", "from": "findup-sync@>=0.3.0 <0.4.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz" + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", + "dependencies": { + "glob": { + "version": "5.0.15", + "from": "glob@>=5.0.0 <5.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz" + } + } }, "git-wrapper": { "version": "0.1.1", @@ -53,14 +59,14 @@ "resolved": "https://registry.npmjs.org/git-wrapper/-/git-wrapper-0.1.1.tgz" }, "glob": { - "version": "5.0.15", - "from": "glob@>=5.0.14 <6.0.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz" + "version": "6.0.4", + "from": "glob@>=6.0.4 <7.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz" }, "hoek": { - "version": "2.16.3", - "from": "hoek@>=2.2.0 <3.0.0", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz" + "version": "3.0.4", + "from": "hoek@>=3.0.0 <4.0.0", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-3.0.4.tgz" }, "inflight": { "version": "1.0.4", @@ -78,18 +84,18 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" }, "isemail": { - "version": "1.2.0", - "from": "isemail@>=1.0.0 <2.0.0", - "resolved": "https://registry.npmjs.org/isemail/-/isemail-1.2.0.tgz" + "version": "2.1.0", + "from": "isemail@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/isemail/-/isemail-2.1.0.tgz" }, "joi": { - "version": "4.9.0", - "from": "joi@>=4.0.0 <5.0.0", - "resolved": "https://registry.npmjs.org/joi/-/joi-4.9.0.tgz" + "version": "7.2.2", + "from": "joi@>=7.2.2 <8.0.0", + "resolved": "https://registry.npmjs.org/joi/-/joi-7.2.2.tgz" }, "joi-assert": { "version": "0.0.3", - "from": "joi-assert@0.0.3", + "from": "joi-assert@>=0.0.3 <0.0.4", "resolved": "https://registry.npmjs.org/joi-assert/-/joi-assert-0.0.3.tgz" }, "jsonparse": { @@ -130,9 +136,9 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz" }, "moment": { - "version": "2.10.6", + "version": "2.11.1", "from": "moment@>=2.0.0 <3.0.0", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.10.6.tgz" + "resolved": "https://registry.npmjs.org/moment/-/moment-2.11.1.tgz" }, "once": { "version": "1.3.3", @@ -145,9 +151,9 @@ "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz" }, "parsimmon": { - "version": "0.5.1", - "from": "parsimmon@>=0.5.0 <0.6.0", - "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-0.5.1.tgz" + "version": "0.7.0", + "from": "parsimmon@>=0.7.0 <0.8.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-0.7.0.tgz" }, "path-is-absolute": { "version": "1.0.0", @@ -180,9 +186,9 @@ "resolved": "https://registry.npmjs.org/through2/-/through2-0.5.1.tgz" }, "topo": { - "version": "1.1.0", - "from": "topo@>=1.0.0 <2.0.0", - "resolved": "https://registry.npmjs.org/topo/-/topo-1.1.0.tgz" + "version": "2.0.0", + "from": "topo@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/topo/-/topo-2.0.0.tgz" }, "type-detect": { "version": "0.1.2", @@ -190,9 +196,9 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.2.tgz" }, "typescript": { - "version": "1.7.3", - "from": "typescript@1.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-1.7.3.tgz" + "version": "1.7.5", + "from": "typescript@1.7.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-1.7.5.tgz" }, "wordwrap": { "version": "0.0.3", @@ -205,9 +211,9 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz" }, "xregexp": { - "version": "2.0.0", - "from": "xregexp@>=2.0.0 <2.1.0", - "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz" + "version": "3.0.0", + "from": "xregexp@>=3.0.0 <4.0.0", + "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-3.0.0.tgz" }, "xtend": { "version": "3.0.0", diff --git a/package.json b/package.json index 52cc5b719..fc13280e2 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dependencies": { }, "devDependencies": { - "definition-tester": "0.3.0", - "typescript": "1.7.3" + "definition-tester": "0.4.0", + "typescript": "1.7.5" } } From 6be3aa6317135b9255b000924af9d7cebe3737bf Mon Sep 17 00:00:00 2001 From: Sven Date: Sun, 31 Jan 2016 10:21:21 +0100 Subject: [PATCH 36/59] add empty namespace declaration for chai-as-promised to allow es6 imports See https://github.com/Microsoft/TypeScript/issues/5073 and #6697 --- vinyl-source-stream/vinyl-source-stream.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vinyl-source-stream/vinyl-source-stream.d.ts b/vinyl-source-stream/vinyl-source-stream.d.ts index cf5f8082a..0a6d663c6 100644 --- a/vinyl-source-stream/vinyl-source-stream.d.ts +++ b/vinyl-source-stream/vinyl-source-stream.d.ts @@ -7,5 +7,6 @@ declare module "vinyl-source-stream" { function vinylSourceStream(filename: string): NodeJS.ReadWriteStream; + namespace vinylSourceStream {} export = vinylSourceStream; -} \ No newline at end of file +} From f775513604fa97d1ee25f929c1da6e6e7456639d Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sun, 31 Jan 2016 14:35:45 +0500 Subject: [PATCH 37/59] lodash: updated string functions --- lodash/lodash-tests.ts | 257 +++++++++++++++-------- lodash/lodash.d.ts | 460 +++++++++++++++++++++++------------------ 2 files changed, 428 insertions(+), 289 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 66f0bf2ca..f94df5c31 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -8970,7 +8970,7 @@ module TestValuesIn { **********/ // _.camelCase -module TestCamelCase { +namespace TestCamelCase { { let result: string; @@ -8986,7 +8986,7 @@ module TestCamelCase { } // _.capitalize -module TestCapitalize { +namespace TestCapitalize { { let result: string; @@ -9002,7 +9002,7 @@ module TestCapitalize { } // _.deburr -module TestDeburr { +namespace TestDeburr { { let result: string; @@ -9018,7 +9018,7 @@ module TestDeburr { } // _.endsWith -module TestEndsWith { +namespace TestEndsWith { { let result: boolean; @@ -9038,7 +9038,7 @@ module TestEndsWith { } // _.escape -module TestEscape { +namespace TestEscape { { let result: string; @@ -9054,7 +9054,7 @@ module TestEscape { } // _.escapeRegExp -module TestEscapeRegExp { +namespace TestEscapeRegExp { { let result: string; @@ -9070,7 +9070,7 @@ module TestEscapeRegExp { } // _.kebabCase -module TestKebabCase { +namespace TestKebabCase { { let result: string; @@ -9086,7 +9086,7 @@ module TestKebabCase { } // _.lowerCase -module TestLowerCase { +namespace TestLowerCase { { let result: string; @@ -9102,7 +9102,7 @@ module TestLowerCase { } // _.lowerFirst -module TestLowerFirst { +namespace TestLowerFirst { { let result: string; @@ -9118,11 +9118,11 @@ module TestLowerFirst { } // _.pad -module TestPad { +namespace TestPad { { let result: string; - result = _.pad('abd'); + result = _.pad('abc'); result = _.pad('abc', 8); result = _.pad('abc', 8, '_-'); @@ -9140,31 +9140,8 @@ module TestPad { } } -// _.padStart -module TestPadStart { - { - let result: string; - - result = _.padStart('abc'); - result = _.padStart('abc', 6); - result = _.padStart('abc', 6, '_-'); - - result = _('abc').padStart(); - result = _('abc').padStart(6); - result = _('abc').padStart(6, '_-'); - } - - { - let result: _.LoDashExplicitWrapper; - - result = _('abc').chain().padStart(); - result = _('abc').chain().padStart(6); - result = _('abc').chain().padStart(6, '_-'); - } -} - // _.padEnd -module TestPadEnd { +namespace TestPadEnd { { let result: string; @@ -9186,9 +9163,31 @@ module TestPadEnd { } } +// _.padStart +namespace TestPadStart { + { + let result: string; + + result = _.padStart('abc'); + result = _.padStart('abc', 6); + result = _.padStart('abc', 6, '_-'); + + result = _('abc').padStart(); + result = _('abc').padStart(6); + result = _('abc').padStart(6, '_-'); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('abc').chain().padStart(); + result = _('abc').chain().padStart(6); + result = _('abc').chain().padStart(6, '_-'); + } +} // _.parseInt -module TestParseInt { +namespace TestParseInt { { let result: number; @@ -9208,7 +9207,7 @@ module TestParseInt { } // _.repeat -module TestRepeat { +namespace TestRepeat { { let result: string; result = _.repeat('*'); @@ -9226,8 +9225,63 @@ module TestRepeat { } } +// _.replace +namespace TestReplace { + let replacer = (match: string, offset: number, string: string) => 'Barney'; + + { + let result: string; + + result = _.replace('Hi Fred', 'Fred', 'Barney'); + result = _.replace('Hi Fred', 'Fred', replacer); + + result = _.replace('Hi Fred', /fred/i, 'Barney'); + result = _.replace('Hi Fred', /fred/i, replacer); + + result = _.replace('Fred'); + result = _.replace('Fred', 'Barney'); + result = _.replace('Fred', replacer); + + result = _.replace(/fred/i); + result = _.replace(/fred/i, 'Barney'); + result = _.replace(/fred/i, replacer); + + result = _('Hi Fred').replace('Fred', 'Barney'); + result = _('Hi Fred').replace('Fred', replacer); + + result = _('Hi Fred').replace(/fred/i, 'Barney'); + result = _('Hi Fred').replace(/fred/i, replacer); + + result = _('Fred').replace(); + result = _('Fred').replace('Barney'); + result = _('Fred').replace(replacer); + + result = _(/fred/i).replace(); + result = _(/fred/i).replace('Barney'); + result = _(/fred/i).replace(replacer); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('Hi Fred').chain().replace('Fred', 'Barney'); + result = _('Hi Fred').chain().replace('Fred', replacer); + + result = _('Hi Fred').chain().replace(/fred/i, 'Barney'); + result = _('Hi Fred').chain().replace(/fred/i, replacer); + + result = _('Fred').chain().replace(); + result = _('Fred').chain().replace('Barney'); + result = _('Fred').chain().replace(replacer); + + result = _(/fred/i).chain().replace(); + result = _(/fred/i).chain().replace('Barney'); + result = _(/fred/i).chain().replace(replacer); + } +} + // _.snakeCase -module TestSnakeCase { +namespace TestSnakeCase { { let result: string; @@ -9242,8 +9296,35 @@ module TestSnakeCase { } } +// _.split +namespace TestSplit { + { + let result: string[]; + + result = _.split('a-b-c'); + result = _.split('a-b-c', '-'); + result = _.split('a-b-c', '-', 2); + } + + { + let result: _.LoDashImplicitArrayWrapper; + + result = _('a-b-c').split(); + result = _('a-b-c').split('-'); + result = _('a-b-c').split('-', 2); + } + + { + let result: _.LoDashExplicitArrayWrapper; + + result = _('a-b-c').chain().split(); + result = _('a-b-c').chain().split('-'); + result = _('a-b-c').chain().split('-', 2); + } +} + // _.startCase -module TestStartCase { +namespace TestStartCase { { let result: string; @@ -9259,7 +9340,7 @@ module TestStartCase { } // _.startsWith -module TestStartsWith { +namespace TestStartsWith { { let result: boolean; @@ -9279,7 +9360,7 @@ module TestStartsWith { } // _.template -module TestTemplate { +namespace TestTemplate { interface TemplateExecutor { (obj?: Object): string; source: string; @@ -9313,7 +9394,7 @@ module TestTemplate { } // _.toLower -module TestToLower { +namespace TestToLower { { let result: string; @@ -9329,7 +9410,7 @@ module TestToLower { } // _.toUpper -module TestToUpper { +namespace TestToUpper { { let result: string; @@ -9345,7 +9426,7 @@ module TestToUpper { } // _.trim -module TestTrim { +namespace TestTrim { { let result: string; @@ -9365,29 +9446,8 @@ module TestTrim { } } -// _.trimStart -module TestTrimStart { - { - let result: string; - - result = _.trimStart(); - result = _.trimStart(' abc '); - result = _.trimStart('-_-abc-_-', '_-'); - - result = _('-_-abc-_-').trimStart(); - result = _('-_-abc-_-').trimStart('_-'); - } - - { - let result: _.LoDashExplicitWrapper; - - result = _('-_-abc-_-').chain().trimStart(); - result = _('-_-abc-_-').chain().trimStart('_-'); - } -} - // _.trimEnd -module TestTrimEnd { +namespace TestTrimEnd { { let result: string; @@ -9407,19 +9467,38 @@ module TestTrimEnd { } } +// _.trimStart +namespace TestTrimStart { + { + let result: string; + + result = _.trimStart(); + result = _.trimStart(' abc '); + result = _.trimStart('-_-abc-_-', '_-'); + + result = _('-_-abc-_-').trimStart(); + result = _('-_-abc-_-').trimStart('_-'); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('-_-abc-_-').chain().trimStart(); + result = _('-_-abc-_-').chain().trimStart('_-'); + } +} + // _.truncate -module Testtruncate { +namespace TestTruncate { { let result: string; result = _.truncate('hi-diddly-ho there, neighborino'); - result = _.truncate('hi-diddly-ho there, neighborino', 24); result = _.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': ' ' }); result = _.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': /,? +/ }); result = _.truncate('hi-diddly-ho there, neighborino', { 'omission': ' […]' }); result = _('hi-diddly-ho there, neighborino').truncate(); - result = _('hi-diddly-ho there, neighborino').truncate(24); result = _('hi-diddly-ho there, neighborino').truncate({ 'length': 24, 'separator': ' ' }); result = _('hi-diddly-ho there, neighborino').truncate({ 'length': 24, 'separator': /,? +/ }); result = _('hi-diddly-ho there, neighborino').truncate({ 'omission': ' […]' }); @@ -9429,15 +9508,31 @@ module Testtruncate { let result: _.LoDashExplicitWrapper; result = _('hi-diddly-ho there, neighborino').chain().truncate(); - result = _('hi-diddly-ho there, neighborino').chain().truncate(24); result = _('hi-diddly-ho there, neighborino').chain().truncate({ 'length': 24, 'separator': ' ' }); result = _('hi-diddly-ho there, neighborino').chain().truncate({ 'length': 24, 'separator': /,? +/ }); result = _('hi-diddly-ho there, neighborino').chain().truncate({ 'omission': ' […]' }); } } +// _.unescape +namespace TestUnescape { + { + let result: string; + + result = _.unescape('fred, barney, & pebbles'); + result = _('fred, barney, & pebbles').unescape(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _('fred, barney, & pebbles').chain().unescape(); + } +} + + // _.upperCase -module TestUpperCase { +namespace TestUpperCase { { let result: string; @@ -9453,7 +9548,7 @@ module TestUpperCase { } // _.upperFirst -module TestUpperFirst { +namespace TestUpperFirst { { let result: string; @@ -9468,24 +9563,8 @@ module TestUpperFirst { } } -// _.unescape -module TestUnescape { - { - let result: string; - - result = _.unescape('fred, barney, & pebbles'); - result = _('fred, barney, & pebbles').unescape(); - } - - { - let result: _.LoDashExplicitWrapper; - - result = _('fred, barney, & pebbles').chain().unescape(); - } -} - // _.words -module TestWords { +namespace TestWords { { let result: string[]; diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index aaa8dc7e3..e83c5f52e 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -14907,6 +14907,12 @@ declare module _ { //_.capitalize interface LoDashStatic { + /** + * Converts the first character of string to upper case and the remaining to lower case. + * + * @param string The string to capitalize. + * @return Returns the capitalized string. + */ capitalize(string?: string): string; } @@ -14990,16 +14996,16 @@ declare module _ { // _.escape interface LoDashStatic { /** - * Converts the characters "&", "<", ">", '"', "'", and "`", in string to their corresponding HTML entities. + * Converts the characters "&", "<", ">", '"', "'", and "`" in string to their corresponding HTML entities. * * Note: No other characters are escaped. To escape additional characters use a third-party library like he. * - * Though the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML + * hough the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML * and have no special meaning unless they're part of a tag or unquoted attribute value. See Mathias Bynens’s * article (under "semi-related fun fact") for more details. * - * Backticks are escaped because in Internet Explorer < 9, they can break out of attribute values or HTML - * comments. See #59, #102, #108, and #133 of the HTML5 Security Cheatsheet for more details. + * Backticks are escaped because in IE < 9, they can break out of attribute values or HTML comments. See #59, + * #102, #108, and #133 of the HTML5 Security Cheatsheet for more details. * * When working with HTML you should always quote attribute values to reduce XSS vectors. * @@ -15026,8 +15032,8 @@ declare module _ { // _.escapeRegExp interface LoDashStatic { /** - * Escapes the RegExp special characters "\", "/", "^", "$", ".", "|", "?", "*", "+", "(", ")", "[", "]", - * "{" and "}" in string. + * Escapes the RegExp special characters "^", "$", "\", ".", "*", "+", "?", "(", ")", "[", "]", + * "{", "}", and "|" in string. * * @param string The string to escape. * @return Returns the escaped string. @@ -15079,21 +15085,8 @@ declare module _ { /** * Converts `string`, as space separated words, to lower case. * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the lower cased string. - * @example - * - * _.lowerCase('--Foo-Bar'); - * // => 'foo bar' - * - * _.lowerCase('fooBar'); - * // => 'foo bar' - * - * _.lowerCase('__FOO_BAR__'); - * // => 'foo bar' + * @param string The string to convert. + * @return Returns the lower cased string. */ lowerCase(string?: string): string; } @@ -15117,18 +15110,8 @@ declare module _ { /** * Converts the first character of `string` to lower case. * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.lowerFirst('Fred'); - * // => 'fred' - * - * _.lowerFirst('FRED'); - * // => 'fRED' + * @param string The string to convert. + * @return Returns the converted string. */ lowerFirst(string?: string): string; } @@ -15185,44 +15168,6 @@ declare module _ { ): LoDashExplicitWrapper; } - //_.padStart - interface LoDashStatic { - /** - * Pads string on the left side if it’s shorter than length. Padding characters are truncated if they exceed - * length. - * - * @param string The string to pad. - * @param length The padding length. - * @param chars The string used as padding. - * @return Returns the padded string. - */ - padStart( - string?: string, - length?: number, - chars?: string - ): string; - } - - interface LoDashImplicitWrapper { - /** - * @see _.padStart - */ - padStart( - length?: number, - chars?: string - ): string; - } - - interface LoDashExplicitWrapper { - /** - * @see _.padStart - */ - padStart( - length?: number, - chars?: string - ): LoDashExplicitWrapper; - } - //_.padEnd interface LoDashStatic { /** @@ -15261,6 +15206,44 @@ declare module _ { ): LoDashExplicitWrapper; } + //_.padStart + interface LoDashStatic { + /** + * Pads string on the left side if it’s shorter than length. Padding characters are truncated if they exceed + * length. + * + * @param string The string to pad. + * @param length The padding length. + * @param chars The string used as padding. + * @return Returns the padded string. + */ + padStart( + string?: string, + length?: number, + chars?: string + ): string; + } + + interface LoDashImplicitWrapper { + /** + * @see _.padStart + */ + padStart( + length?: number, + chars?: string + ): string; + } + + interface LoDashExplicitWrapper { + /** + * @see _.padStart + */ + padStart( + length?: number, + chars?: string + ): LoDashExplicitWrapper; + } + //_.parseInt interface LoDashStatic { /** @@ -15322,6 +15305,101 @@ declare module _ { repeat(n?: number): LoDashExplicitWrapper; } + //_.replace + interface LoDashStatic { + /** + * Replaces matches for pattern in string with replacement. + * + * Note: This method is based on String#replace. + * + * @param string + * @param pattern + * @param replacement + * @return Returns the modified string. + */ + replace( + string: string, + pattern: RegExp|string, + replacement: Function|string + ): string; + + /** + * @see _.replace + */ + replace( + pattern?: RegExp|string, + replacement?: Function|string + ): string; + } + + interface LoDashImplicitWrapper { + /** + * @see _.replace + */ + replace( + pattern?: RegExp|string, + replacement?: Function|string + ): string; + + /** + * @see _.replace + */ + replace( + replacement?: Function|string + ): string; + } + + interface LoDashImplicitObjectWrapper { + /** + * @see _.replace + */ + replace( + pattern?: RegExp|string, + replacement?: Function|string + ): string; + + /** + * @see _.replace + */ + replace( + replacement?: Function|string + ): string; + } + + interface LoDashExplicitWrapper { + /** + * @see _.replace + */ + replace( + pattern?: RegExp|string, + replacement?: Function|string + ): LoDashExplicitWrapper; + + /** + * @see _.replace + */ + replace( + replacement?: Function|string + ): LoDashExplicitWrapper; + } + + interface LoDashExplicitObjectWrapper { + /** + * @see _.replace + */ + replace( + pattern?: RegExp|string, + replacement?: Function|string + ): LoDashExplicitWrapper; + + /** + * @see _.replace + */ + replace( + replacement?: Function|string + ): LoDashExplicitWrapper; + } + //_.snakeCase interface LoDashStatic { /** @@ -15347,6 +15425,45 @@ declare module _ { snakeCase(): LoDashExplicitWrapper; } + //_.split + interface LoDashStatic { + /** + * Splits string by separator. + * + * Note: This method is based on String#split. + * + * @param string + * @param separator + * @param limit + * @return Returns the new array of string segments. + */ + split( + string: string, + separator?: RegExp|string, + limit?: number + ): string[]; + } + + interface LoDashImplicitWrapper { + /** + * @see _.split + */ + split( + separator?: RegExp|string, + limit?: number + ): LoDashImplicitArrayWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.split + */ + split( + separator?: RegExp|string, + limit?: number + ): LoDashExplicitArrayWrapper; + } + //_.startCase interface LoDashStatic { /** @@ -15474,21 +15591,8 @@ declare module _ { /** * Converts `string`, as a whole, to lower case. * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the lower cased string. - * @example - * - * _.toLower('--Foo-Bar'); - * // => '--foo-bar' - * - * _.toLower('fooBar'); - * // => 'foobar' - * - * _.toLower('__FOO_BAR__'); - * // => '__foo_bar__' + * @param string The string to convert. + * @return Returns the lower cased string. */ toLower(string?: string): string; } @@ -15512,21 +15616,8 @@ declare module _ { /** * Converts `string`, as a whole, to upper case. * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the upper cased string. - * @example - * - * _.toUpper('--foo-bar'); - * // => '--FOO-BAR' - * - * _.toUpper('fooBar'); - * // => 'FOOBAR' - * - * _.toUpper('__foo_bar__'); - * // => '__FOO_BAR__' + * @param string The string to convert. + * @return Returns the upper cased string. */ toUpper(string?: string): string; } @@ -15574,35 +15665,6 @@ declare module _ { trim(chars?: string): LoDashExplicitWrapper; } - //_.trimStart - interface LoDashStatic { - /** - * Removes leading whitespace or specified characters from string. - * - * @param string The string to trim. - * @param chars The characters to trim. - * @return Returns the trimmed string. - */ - trimStart( - string?: string, - chars?: string - ): string; - } - - interface LoDashImplicitWrapper { - /** - * @see _.trimStart - */ - trimStart(chars?: string): string; - } - - interface LoDashExplicitWrapper { - /** - * @see _.trimStart - */ - trimStart(chars?: string): LoDashExplicitWrapper; - } - //_.trimEnd interface LoDashStatic { /** @@ -15632,6 +15694,35 @@ declare module _ { trimEnd(chars?: string): LoDashExplicitWrapper; } + //_.trimStart + interface LoDashStatic { + /** + * Removes leading whitespace or specified characters from string. + * + * @param string The string to trim. + * @param chars The characters to trim. + * @return Returns the trimmed string. + */ + trimStart( + string?: string, + chars?: string + ): string; + } + + interface LoDashImplicitWrapper { + /** + * @see _.trimStart + */ + trimStart(chars?: string): string; + } + + interface LoDashExplicitWrapper { + /** + * @see _.trimStart + */ + trimStart(chars?: string): LoDashExplicitWrapper; + } + //_.truncate interface TruncateOptions { /** The maximum string length. */ @@ -15653,7 +15744,7 @@ declare module _ { */ truncate( string?: string, - options?: TruncateOptions|number + options?: TruncateOptions ): string; } @@ -15661,14 +15752,43 @@ declare module _ { /** * @see _.truncate */ - truncate(options?: TruncateOptions|number): string; + truncate(options?: TruncateOptions): string; } interface LoDashExplicitWrapper { /** * @see _.truncate */ - truncate(options?: TruncateOptions|number): LoDashExplicitWrapper; + truncate(options?: TruncateOptions): LoDashExplicitWrapper; + } + + //_.unescape + interface LoDashStatic { + /** + * The inverse of _.escape; this method converts the HTML entities &, <, >, ", ', and ` + * in string to their corresponding characters. + * + * Note: No other HTML entities are unescaped. To unescape additional HTML entities use a third-party library + * like he. + * + * @param string The string to unescape. + * @return Returns the unescaped string. + */ + unescape(string?: string): string; + } + + interface LoDashImplicitWrapper { + /** + * @see _.unescape + */ + unescape(): string; + } + + interface LoDashExplicitWrapper { + /** + * @see _.unescape + */ + unescape(): LoDashExplicitWrapper; } //_.upperCase @@ -15676,21 +15796,8 @@ declare module _ { /** * Converts `string`, as space separated words, to upper case. * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the upper cased string. - * @example - * - * _.upperCase('--foo-bar'); - * // => 'FOO BAR' - * - * _.upperCase('fooBar'); - * // => 'FOO BAR' - * - * _.upperCase('__foo_bar__'); - * // => 'FOO BAR' + * @param string The string to convert. + * @return Returns the upper cased string. */ upperCase(string?: string): string; } @@ -15714,18 +15821,8 @@ declare module _ { /** * Converts the first character of `string` to upper case. * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.upperFirst('fred'); - * // => 'Fred' - * - * _.upperFirst('FRED'); - * // => 'FRED' + * @param string The string to convert. + * @return Returns the converted string. */ upperFirst(string?: string): string; } @@ -15744,51 +15841,14 @@ declare module _ { upperFirst(): LoDashExplicitWrapper; } - //_.unescape - interface LoDashStatic { - /** - * The inverse of _.escape; this method converts the HTML entities &, <, >, ", ', and ` - * in string to their corresponding characters. - * - * @param string The string to unescape. - * @return Returns the unescaped string. - */ - unescape(string?: string): string; - } - - interface LoDashImplicitWrapper { - /** - * @see _.unescape - */ - unescape(): string; - } - - interface LoDashExplicitWrapper { - /** - * @see _.unescape - */ - unescape(): LoDashExplicitWrapper; - } - //_.words interface LoDashStatic { /** * Splits `string` into an array of its words. * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to inspect. - * @param {RegExp|string} [pattern] The pattern to match words. - * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`. - * @returns {Array} Returns the words of `string`. - * @example - * - * _.words('fred, barney, & pebbles'); - * // => ['fred', 'barney', 'pebbles'] - * - * _.words('fred, barney, & pebbles', /[^, ]+/g); - * // => ['fred', 'barney', '&', 'pebbles'] + * @param string The string to inspect. + * @param pattern The pattern to match words. + * @return Returns the words of `string`. */ words( string?: string, From bad2560a5487921a2699e1a7db2a8878e6c4e11c Mon Sep 17 00:00:00 2001 From: Pascal Garber Date: Sun, 31 Jan 2016 13:16:19 +0100 Subject: [PATCH 38/59] node-sass-middleware added --- .../node-sass-middleware-tests.ts | 15 ++++ .../node-sass-middleware.d.ts | 69 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 node-sass-middleware/node-sass-middleware-tests.ts create mode 100644 node-sass-middleware/node-sass-middleware.d.ts diff --git a/node-sass-middleware/node-sass-middleware-tests.ts b/node-sass-middleware/node-sass-middleware-tests.ts new file mode 100644 index 000000000..088aa5ce5 --- /dev/null +++ b/node-sass-middleware/node-sass-middleware-tests.ts @@ -0,0 +1,15 @@ +/// + +import * as express from "express"; +import * as sassMiddleware from "node-sass-middleware"; +import * as path from "path"; +var app = express(); +app.use(sassMiddleware({ + /* Options */ + src: __dirname, + dest: path.join(__dirname, 'public'), + debug: true, + outputStyle: 'compressed', + prefix: '/prefix' // Where prefix is at +})); +app.use(express.static(path.join(__dirname, 'public'))); \ No newline at end of file diff --git a/node-sass-middleware/node-sass-middleware.d.ts b/node-sass-middleware/node-sass-middleware.d.ts new file mode 100644 index 000000000..36af6b6c2 --- /dev/null +++ b/node-sass-middleware/node-sass-middleware.d.ts @@ -0,0 +1,69 @@ +// Type definitions for node-sass-middleware +// Project: https://github.com/sass/node-sass-middleware +// Definitions by: Pascal Garber +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// + +declare module "node-sass-middleware" { + + import * as sass from "node-sass"; + import * as express from "express"; + + interface Options extends sass.Options { + /** + * + */ + src: string; + /** + * + */ + dest?: string; + /** + * + */ + root?: string; + /** + * + */ + prefix?: string; + /** + * + */ + force?: boolean; + /** + * + */ + debug?: boolean; + /** + * + */ + indentedSyntax?: boolean; + /** + * + */ + response?: boolean; + /** + * + */ + error?: () => void; + } + + /** + * + * + */ + + function nodeSassMiddleware(options: Options): express.RequestHandler; + + /** + * + */ + namespace nodeSassMiddleware { } + + /** + * + */ + export = nodeSassMiddleware; +} \ No newline at end of file From bf4e9e95314a59977d71e850508d40913b145c1d Mon Sep 17 00:00:00 2001 From: daggilli Date: Sun, 31 Jan 2016 12:46:04 -0600 Subject: [PATCH 39/59] Add support for 'SCRIPT' command The SCRIPT (SCRIPT [DEBUG, EXISTS, FLUSH, KILL, LOAD]) commands were not typed. This patch adds support. --- redis/redis.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redis/redis.d.ts b/redis/redis.d.ts index 723cb2701..ad38f95cb 100644 --- a/redis/redis.d.ts +++ b/redis/redis.d.ts @@ -359,6 +359,9 @@ declare module "redis" { eval(...args:any[]): boolean; evalsha(args:any[], callback?:ResCallbackT): boolean; evalsha(...args:any[]): boolean; + script(args:any[], callback?:ResCallbackT): boolean; + script(...args: any[]): boolean; + script(key: string, callback?: ResCallbackT): boolean; quit(args:any[], callback?:ResCallbackT): boolean; quit(...args:any[]): boolean; } From 8791743f8edca786a903bb8e9706eb28acc57220 Mon Sep 17 00:00:00 2001 From: Ke Peng Date: Mon, 25 Jan 2016 11:56:09 +0800 Subject: [PATCH 40/59] add type define for callsite(https://github.com/tj/callsite) --- callsite/callsite.d.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 callsite/callsite.d.ts diff --git a/callsite/callsite.d.ts b/callsite/callsite.d.ts new file mode 100644 index 000000000..33fbbb4ee --- /dev/null +++ b/callsite/callsite.d.ts @@ -0,0 +1,27 @@ +// Type definitions for callsite 1.0.0 +// Project: https://github.com/tj/callsite +// Definitions by: newclear +// Definitions: https://github.com/newclear/DefinitelyTyped + +declare module "callsite" { + interface CallSite { + getFileName(): string; + getFunctionName(): string; + getScriptNameOrSourceUrl(): string; + getMethodName(): string; + getEvalOrigin(): string; + getTypeName(): string; + getLineNumber(): number; + getColumnNumber(): number; + getFunction(): Function; + getThis(): any; + isNative(): boolean; + isToplevel(): boolean; + isEval(): boolean; + isConstructor(): boolean; + } + + function callsiteFunc(): CallSite[]; + + export = callsiteFunc; +} From c6705823c03f66ec5394b5f8c012e8f69a30f788 Mon Sep 17 00:00:00 2001 From: Ke Peng Date: Mon, 25 Jan 2016 12:23:10 +0800 Subject: [PATCH 41/59] update callsite.d.ts and add test. --- callsite/callsite-tests.ts | 21 +++++++++++++++++++++ callsite/callsite.d.ts | 11 +++++------ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 callsite/callsite-tests.ts diff --git a/callsite/callsite-tests.ts b/callsite/callsite-tests.ts new file mode 100644 index 000000000..fcabcd8b5 --- /dev/null +++ b/callsite/callsite-tests.ts @@ -0,0 +1,21 @@ + +/// + +import callsite = require("callsite"); + +var stack = callsite(); +var p = stack[0]; + +console.log(p.getThis()); +console.log(p.getTypeName()); +console.log(p.getFunctionName()); +console.log(p.getMethodName()); +console.log(p.getFileName()); +console.log(p.getLineNumber()); +console.log(p.getColumnNumber()); +console.log(p.getFunction()); +console.log(p.getEvalOrigin()); +console.log(p.isNative()); +console.log(p.isToplevel()); +console.log(p.isEval()); +console.log(p.isConstructor()); diff --git a/callsite/callsite.d.ts b/callsite/callsite.d.ts index 33fbbb4ee..d3b70bffa 100644 --- a/callsite/callsite.d.ts +++ b/callsite/callsite.d.ts @@ -5,16 +5,15 @@ declare module "callsite" { interface CallSite { - getFileName(): string; - getFunctionName(): string; - getScriptNameOrSourceUrl(): string; - getMethodName(): string; - getEvalOrigin(): string; + getThis(): any; getTypeName(): string; + getFunctionName(): string; + getMethodName(): string; + getFileName(): string; getLineNumber(): number; getColumnNumber(): number; getFunction(): Function; - getThis(): any; + getEvalOrigin(): string; isNative(): boolean; isToplevel(): boolean; isEval(): boolean; From 17d386504d44c7e54fd21983b70f0756acacff92 Mon Sep 17 00:00:00 2001 From: Ke Peng Date: Mon, 1 Feb 2016 10:23:30 +0800 Subject: [PATCH 42/59] update callsite for expose CallSite type --- callsite/callsite.d.ts | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/callsite/callsite.d.ts b/callsite/callsite.d.ts index d3b70bffa..be73af4de 100644 --- a/callsite/callsite.d.ts +++ b/callsite/callsite.d.ts @@ -4,23 +4,27 @@ // Definitions: https://github.com/newclear/DefinitelyTyped declare module "callsite" { - interface CallSite { - getThis(): any; - getTypeName(): string; - getFunctionName(): string; - getMethodName(): string; - getFileName(): string; - getLineNumber(): number; - getColumnNumber(): number; - getFunction(): Function; - getEvalOrigin(): string; - isNative(): boolean; - isToplevel(): boolean; - isEval(): boolean; - isConstructor(): boolean; + + module Callsite{ + + interface CallSite { + getThis(): any; + getTypeName(): string; + getFunctionName(): string; + getMethodName(): string; + getFileName(): string; + getLineNumber(): number; + getColumnNumber(): number; + getFunction(): Function; + getEvalOrigin(): string; + isNative(): boolean; + isToplevel(): boolean; + isEval(): boolean; + isConstructor(): boolean; + } } - function callsiteFunc(): CallSite[]; + function Callsite(): Callsite.CallSite[]; - export = callsiteFunc; + export = Callsite; } From 3d46732540857d6ec155413301513920067cffaf Mon Sep 17 00:00:00 2001 From: Ke Peng Date: Mon, 1 Feb 2016 15:56:06 +0800 Subject: [PATCH 43/59] add type define for traverse --- traverse/traverse-tests.ts | 40 ++++++++++++++++++++++++++++++++++++++ traverse/traverse.d.ts | 22 +++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 traverse/traverse-tests.ts create mode 100644 traverse/traverse.d.ts diff --git a/traverse/traverse-tests.ts b/traverse/traverse-tests.ts new file mode 100644 index 000000000..bc5bfa87c --- /dev/null +++ b/traverse/traverse-tests.ts @@ -0,0 +1,40 @@ +/// + +import traverse = require('traverse'); + +function testForEach(){ + var obj = [ 5, 6, -3, [ 7, 8, -2, 1 ], { f : 10, g : -13 } ]; + + traverse(obj).forEach(function (x) { + if (x < 0) this.update(x + 128); + }); + + console.dir(obj); +} + +function testReduce(){ + var obj = { + a : [1,2,3], + b : 4, + c : [5,6], + d : { e : [7,8], f : 9 }, + }; + + var leaves = traverse(obj).reduce(function (acc, x) { + if (this.isLeaf) acc.push(x); + return acc; + }, []); + + console.dir(leaves); +} + +function testMap(){ + var c: any[] = [3, 4]; + var obj = { a : 1, b : 2, c : c }; + obj.c.push(obj); + + var scrubbed = traverse(obj).map(function (x) { + if (this.circular) this.remove() + }); + console.dir(scrubbed); +} diff --git a/traverse/traverse.d.ts b/traverse/traverse.d.ts new file mode 100644 index 000000000..c45c3db03 --- /dev/null +++ b/traverse/traverse.d.ts @@ -0,0 +1,22 @@ +// Type definitions for traverse 0.6.6 +// Project: https://github.com/substack/js-traverse +// Definitions by: newclear +// Definitions: https://github.com/newclear/DefinitelyTyped + +declare module "traverse" { + interface Traverse { + get(paths: string[]): any; + has(paths: string[]): boolean; + set(paths: string[], value: any): any; + map(cb: (v: any) => void): any; + forEach(cb: (v: any) => void): any; + reduce(cb: (acc: any, v: any) => void, init?: any): any; + paths(): string[]; + nodes(): any[]; + clone(): any; + } + + function traverse(obj: any): Traverse; + + export = traverse; +} From 009d2996f2be9b1b810dce7177ddde3b0fb14602 Mon Sep 17 00:00:00 2001 From: sclausen Date: Mon, 1 Feb 2016 12:59:24 +0100 Subject: [PATCH 44/59] updated typings --- js-yaml/js-yaml-tests.ts | 25 +++++++++++++++++++++++++ js-yaml/js-yaml.d.ts | 39 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/js-yaml/js-yaml-tests.ts b/js-yaml/js-yaml-tests.ts index 91596b756..82ef790a0 100644 --- a/js-yaml/js-yaml-tests.ts +++ b/js-yaml/js-yaml-tests.ts @@ -3,12 +3,31 @@ import yaml = require('js-yaml'); import LoadOptions = yaml.LoadOptions; import DumpOptions = yaml.DumpOptions; +import TypeConstructorOptions = yaml.TypeConstructorOptions; +import SchemaDefinition = yaml.SchemaDefinition; var bool: boolean; var num: number; var str: string; var obj: Object; var value: any; +var array: any[]; +var fn: Function; +var schemaDefinition: SchemaDefinition = { + implicit: array, + explicit: array, + include: array +}; +var typeConstructorOptions: TypeConstructorOptions = { + kind: str, + resolve: fn, + construct: fn, + instanceOf: obj, + predicate: str, + represent: fn, + defaultStyle: str, + styleAliases: obj +}; var loadOpts: LoadOptions; var dumpOpts: DumpOptions; @@ -20,6 +39,8 @@ yaml.JSON_SCHEMA; yaml.CORE_SCHEMA; yaml.DEFAULT_SAFE_SCHEMA; yaml.DEFAULT_FULL_SCHEMA; +yaml.MINIMAL_SCHEMA; +yaml.SAFE_SCHEMA; // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- @@ -82,3 +103,7 @@ value = yaml.safeDump(str, dumpOpts); value = yaml.dump(str); value = yaml.dump(str, dumpOpts); + +value = new yaml.YAMLException(); +value = new yaml.Type(str, typeConstructorOptions); +value = yaml.Schema.create(schemaDefinition); diff --git a/js-yaml/js-yaml.d.ts b/js-yaml/js-yaml.d.ts index 0de5a8f6b..78f18ec09 100644 --- a/js-yaml/js-yaml.d.ts +++ b/js-yaml/js-yaml.d.ts @@ -1,3 +1,5 @@ +// Compiled using typings@0.6.4 +// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/52318243888c4aa02b3c0b5e68631577728ffcf8/js-yaml/js-yaml.d.ts // Type definitions for js-yaml 3.0.2 // Project: https://github.com/nodeca/js-yaml // Definitions by: Bart van der Schoor @@ -7,11 +9,20 @@ declare module jsyaml { export function safeLoad(str: string, opts?: LoadOptions): any; export function load(str: string, opts?: LoadOptions): any; + export class Type implements TypeConstructorOptions { + constructor(tag: string, opts?: TypeConstructorOptions); + tag: string; + } + export class Schema { + constructor(definition: SchemaDefinition); + public static create(... any): Schema; + } + export function safeLoadAll(str: string, iterator: (doc: any) => void, opts?: LoadOptions): any; export function loadAll(str: string, iterator: (doc: any) => void, opts?: LoadOptions): any; export function safeDump(obj: any, opts?: DumpOptions): string; - export function dump(obj: any, opts?: DumpOptions): string + export function dump(obj: any, opts?: DumpOptions): string; export interface LoadOptions { // string to be used as a file path in error/warning messages. @@ -29,12 +40,29 @@ declare module jsyaml { skipInvalid?: boolean; // specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere flowLevel?: number; - // Each tag may have own set of styles. - "tag" => "style" map. + // Each tag may have own set of styles. - "tag" => "style" map. styles?: Object; // specifies a schema to use. schema?: any; } + export interface TypeConstructorOptions { + kind?: string; + resolve?: Function; + construct?: Function; + instanceOf?: Object; + predicate?: string; + represent?: Function; + defaultStyle?: string; + styleAliases?: Object; + } + + export interface SchemaDefinition { + implicit?: any[]; + explicit?: any[]; + include?: any[]; + } + // only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 export var FAILSAFE_SCHEMA: any; // only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 @@ -45,6 +73,13 @@ declare module jsyaml { export var DEFAULT_SAFE_SCHEMA: any; // all supported YAML types. export var DEFAULT_FULL_SCHEMA: any; + export var MINIMAL_SCHEMA: any; + export var SAFE_SCHEMA: any; + + export class YAMLException extends Error { + constructor(reason?: any, mark?: any); + toString(compact?: boolean): string; + } } declare module 'js-yaml' { From d475c0d61172fa78c0f458dc5944ecac15e00b29 Mon Sep 17 00:00:00 2001 From: Marcin Porebski Date: Mon, 1 Feb 2016 13:04:41 +0100 Subject: [PATCH 45/59] js-schema patterns definitions --- js-schema/js-schema-tests.ts | 19 ++++++++++++++ js-schema/js-schema.d.ts | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 js-schema/js-schema-tests.ts create mode 100644 js-schema/js-schema.d.ts diff --git a/js-schema/js-schema-tests.ts b/js-schema/js-schema-tests.ts new file mode 100644 index 000000000..4a9a33e58 --- /dev/null +++ b/js-schema/js-schema-tests.ts @@ -0,0 +1,19 @@ +/// + +import {default as schema} from 'js-schema'; + +var Duck = schema({ // A duck + swim : Function, // - can swim + quack : Function, // - can quack + age : Number.min(0).max(5), // - is 0 to 5 years old + color : ['yellow', 'brown'] // - has either yellow or brown color +}); + +// Some animals +var myDuck = { swim : function() {}, quack : function() {}, age : 2, color : 'yellow' }, + myCat = { walk : function() {}, purr : function() {}, age : 3, color : 'black' }, + animals = [ myDuck, myCat, {}, /*...*/ ]; + +// Simple checks +console.log( Duck(myDuck) ); // true +console.log( Duck(myCat) ); // false diff --git a/js-schema/js-schema.d.ts b/js-schema/js-schema.d.ts new file mode 100644 index 000000000..5b9e35d6b --- /dev/null +++ b/js-schema/js-schema.d.ts @@ -0,0 +1,50 @@ +// Type definitions for js-schema +// Project: https://github.com/molnarg/js-schema +// Definitions by: Marcin Porębski https://github.com/marcinporebski +// Definitions: https://github.com/borisyankov/DefinitelyTyped + + +declare module 'js-schema' +{ + export interface Schema + { + (obj: any): boolean; // test obj against the schema + } + + export default function schema(definition: any): Schema +} + +interface NumberConstructor +{ + min(n: number): NumberConstructor; + max(n: number): NumberConstructor; + below(n: number): NumberConstructor; + above(n: number): NumberConstructor; + step(n: number): NumberConstructor; +} + +interface StringConstructor +{ + of(charset: string): StringConstructor; + of(length: number, charset: string): StringConstructor; + of(minLength: number, maxLength: number, charset: string): StringConstructor; +} + +interface ArrayConstructor +{ + like(arr: Array): ArrayConstructor; + of(pattern: any): ArrayConstructor; + of(length: number, pattern: any): ArrayConstructor; + of(minLength: number, maxLength: number, pattern: any): ArrayConstructor; +} + +interface ObjectConstructor +{ + like(obj: any): ObjectConstructor; + reference(obj: any): ObjectConstructor; +} + +interface FunctionConstructor +{ + reference(func: Function): FunctionConstructor; +} \ No newline at end of file From 7e9ed1aedc86bea452bd72bb50f8420146fc6e8e Mon Sep 17 00:00:00 2001 From: Marcin Porebski Date: Mon, 1 Feb 2016 13:08:05 +0100 Subject: [PATCH 46/59] js-schema patterns definitions (doc-header fix?) --- js-schema/js-schema.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js-schema/js-schema.d.ts b/js-schema/js-schema.d.ts index 5b9e35d6b..10c1460f0 100644 --- a/js-schema/js-schema.d.ts +++ b/js-schema/js-schema.d.ts @@ -1,6 +1,6 @@ // Type definitions for js-schema // Project: https://github.com/molnarg/js-schema -// Definitions by: Marcin Porębski https://github.com/marcinporebski +// Definitions by: Marcin Porebski // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -47,4 +47,4 @@ interface ObjectConstructor interface FunctionConstructor { reference(func: Function): FunctionConstructor; -} \ No newline at end of file +} From 2d0a1b1502610025bd55ce8eaa48069da8a16c82 Mon Sep 17 00:00:00 2001 From: Nora Simonow Date: Mon, 1 Feb 2016 14:33:56 +0100 Subject: [PATCH 47/59] Updated IDialogOptions and created IMenuService --- angular-material/angular-material.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/angular-material/angular-material.d.ts b/angular-material/angular-material.d.ts index 4ce3fe103..25ac6b830 100644 --- a/angular-material/angular-material.d.ts +++ b/angular-material/angular-material.d.ts @@ -63,7 +63,10 @@ declare module angular.material { interface IDialogOptions { templateUrl?: string; template?: string; + autoWrap?: boolean; // default: true targetEvent?: MouseEvent; + openFrom?: any; + closeTo?: any; scope?: angular.IScope; // default: new child scope preserveScope?: boolean; // default: false disableParentScroll?: boolean; // default: true @@ -77,8 +80,10 @@ declare module angular.material { resolve?: {[index: string]: angular.IPromise} controllerAs?: string; parent?: string|Element|JQuery; // default: root node - fullscreen?: boolean; + onShowing?: Function; onComplete?: Function; + onRemoving?: Function; + fullscreen?: boolean; } interface IDialogService { @@ -224,7 +229,7 @@ declare module angular.material { setDefaultTheme(theme: string): void; alwaysWatchTheme(alwaysWatch: boolean): void; } - + interface IDateLocaleProvider { months: string[]; shortMonths: string[]; @@ -239,4 +244,8 @@ declare module angular.material { msgCalendar: string; msgOpenCalendar: string; } + + interface IMenuService { + hide(response?: any, options?: any): angular.IPromise; + } } From 7a5d7b12cd838f5fe6382fabd5a701dc26122414 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Mon, 1 Feb 2016 15:29:04 +0100 Subject: [PATCH 48/59] Leaflet: MultiPolygon was misspelled as MultiPolylgon. --- leaflet/leaflet.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 94e6ab51c..f5c9acaaf 100755 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -2442,7 +2442,7 @@ declare namespace L { options: Map.MapOptions; /** - * Iterates over the layers of the map, optionally specifying context + * Iterates over the layers of the map, optionally specifying context * of the iterator function. */ eachLayer(fn: (layer: ILayer) => void, context?: any): Map; @@ -3058,7 +3058,7 @@ declare namespace L { */ function multiPolygon(latlngs: LatLng[][], options?: PolylineOptions): MultiPolygon; - export interface MultiPolylgonStatic extends ClassStatic { + export interface MultiPolygonStatic extends ClassStatic { /** * Instantiates a multi-polyline object given an array of latlngs arrays (one * for each individual polygon) and optionally an options object (the same @@ -3066,7 +3066,7 @@ declare namespace L { */ new(latlngs: LatLng[][], options?: PolylineOptions): MultiPolygon; } - export var MultiPolylgon: MultiPolylgonStatic; + export var MultiPolygon: MultiPolygonStatic; export interface MultiPolygon extends FeatureGroup { /** @@ -4182,7 +4182,7 @@ declare namespace L { * When this option is set, the TileLayer only loads tiles that are in the given geographical bounds. */ bounds?: LatLngBounds; - + /** * Custom keys may be specified in TileLayerOptions so they can be used in a provided URL template. */ From 4d7c434b6bb704cb9cac242dbe6bb4a64cd2d183 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Mon, 1 Feb 2016 15:37:44 +0100 Subject: [PATCH 49/59] Leaflet: Removed a function that doesn't exist. --- leaflet/leaflet.d.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 94e6ab51c..bd2f28148 100755 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -805,13 +805,6 @@ declare namespace L { } declare namespace L { - - /** - * Creates a Draggable object for moving the given element when you start dragging - * the dragHandle element (equals the element itself by default). - */ - function draggable(element: HTMLElement, dragHandle?: HTMLElement): Draggable; - export interface DraggableStatic extends ClassStatic { /** * Creates a Draggable object for moving the given element when you start dragging From 7c9e75f7c0e967930b3d03a09ab85ecb2feebd32 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Mon, 1 Feb 2016 16:42:19 +0100 Subject: [PATCH 50/59] Not every class constructor inherits fields from the default ClassStatic. --- leaflet/leaflet.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 94e6ab51c..12cf1ae95 100755 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -41,7 +41,7 @@ declare module L { export function bounds(points: Point[]): Bounds; - export interface BoundsStatic extends ClassStatic { + export interface BoundsStatic { /** * Creates a Bounds object from two coordinates (usually top-left and bottom-right * corners). @@ -1453,7 +1453,7 @@ declare namespace L { */ function latLng(coords: LatLngExpression): LatLng; - export interface LatLngStatic extends ClassStatic { + export interface LatLngStatic { /** * Creates an object representing a geographical point with the given latitude * and longitude. @@ -1539,7 +1539,7 @@ declare namespace L { */ function latLngBounds(latlngs: LatLngBoundsExpression): LatLngBounds; - export interface LatLngBoundsStatic extends ClassStatic { + export interface LatLngBoundsStatic { /** * Creates a LatLngBounds object by defining south-west and north-east corners * of the rectangle. @@ -2442,7 +2442,7 @@ declare namespace L { options: Map.MapOptions; /** - * Iterates over the layers of the map, optionally specifying context + * Iterates over the layers of the map, optionally specifying context * of the iterator function. */ eachLayer(fn: (layer: ILayer) => void, context?: any): Map; @@ -3401,7 +3401,7 @@ declare namespace L { */ function point(x: number, y: number, round?: boolean): Point; - export interface PointStatic extends ClassStatic { + export interface PointStatic { /** * Creates a Point object with the given x and y coordinates. If optional round * is set to true, rounds the x and y values. @@ -4182,7 +4182,7 @@ declare namespace L { * When this option is set, the TileLayer only loads tiles that are in the given geographical bounds. */ bounds?: LatLngBounds; - + /** * Custom keys may be specified in TileLayerOptions so they can be used in a provided URL template. */ @@ -4191,7 +4191,7 @@ declare namespace L { } declare namespace L { - export interface TransformationStatic extends ClassStatic { + export interface TransformationStatic { /** * Creates a transformation object with the given coefficients. */ From 9e2b6c0c0c20cbac09a74e6873cf5f35d9819633 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Mon, 1 Feb 2016 16:51:40 +0100 Subject: [PATCH 51/59] Fixed copy paste typo --- mongodb/mongodb.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index b96c43522..2efe834e2 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -642,7 +642,7 @@ declare module "mongodb" { //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeOrderedBulkOp initializeOrderedBulkOp(options: CollectionOptions): OrderedBulkOperation; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeUnorderedBulkOp - initializeOrderedBulkOp(options: CollectionOptions): OrderedBulkOperation; + initializeUnorderedBulkOp(options: CollectionOptions): OrderedBulkOperation; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany insertMany(docs: Object[], callback: MongoCallback): void insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; From 5c5e202bceef2d09a438c970375879510a595ead Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Mon, 1 Feb 2016 17:03:20 +0100 Subject: [PATCH 52/59] Leaflet: Wrong syntax. --- leaflet/leaflet.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 94e6ab51c..19532831a 100755 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -513,7 +513,7 @@ declare module L { /** * Creates a control with the given options. */ - function (options?: ControlOptions): Control; + (options?: ControlOptions): Control; } export namespace control { @@ -2442,7 +2442,7 @@ declare namespace L { options: Map.MapOptions; /** - * Iterates over the layers of the map, optionally specifying context + * Iterates over the layers of the map, optionally specifying context * of the iterator function. */ eachLayer(fn: (layer: ILayer) => void, context?: any): Map; @@ -4182,7 +4182,7 @@ declare namespace L { * When this option is set, the TileLayer only loads tiles that are in the given geographical bounds. */ bounds?: LatLngBounds; - + /** * Custom keys may be specified in TileLayerOptions so they can be used in a provided URL template. */ From 0c825d7d55643739ce75203c3d5063c2d71cdeb0 Mon Sep 17 00:00:00 2001 From: RX14 Date: Mon, 1 Feb 2016 20:41:41 +0000 Subject: [PATCH 53/59] Update to winreg 0.0.16 --- winreg/winreg.d.ts | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/winreg/winreg.d.ts b/winreg/winreg.d.ts index 459a6e780..0b23f6981 100644 --- a/winreg/winreg.d.ts +++ b/winreg/winreg.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Winreg v0.0.15 +// Type definitions for Winreg v0.0.16 // Project: https://github.com/fresc81/node-winreg/ // Definitions by: RX14 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -122,6 +122,12 @@ interface Winreg { */ path: string; + /** + * Architecture this key belongs to. + * @readonly + */ + arch: string; + /** * A new Winreg instance of the parent key. * @readonly @@ -198,7 +204,12 @@ declare namespace Winreg { /** * Optional key, default is the root key. */ - key?: String; + key?: string; + + /** + * Optional architecture of the registry. + */ + arch?: string; } /** @@ -240,6 +251,12 @@ declare namespace Winreg { * @readonly */ value: string; + + /** + * Architecture this value belongs to. + * @readonly + */ + arch: string; } } From e5059193ce8a188880b106d71e31799ef8f71640 Mon Sep 17 00:00:00 2001 From: sclausen Date: Tue, 2 Feb 2016 09:27:04 +0100 Subject: [PATCH 54/59] fixed wrong argument type of Schema.create --- js-yaml/js-yaml.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-yaml/js-yaml.d.ts b/js-yaml/js-yaml.d.ts index 78f18ec09..a075171f9 100644 --- a/js-yaml/js-yaml.d.ts +++ b/js-yaml/js-yaml.d.ts @@ -15,7 +15,7 @@ declare module jsyaml { } export class Schema { constructor(definition: SchemaDefinition); - public static create(... any): Schema; + public static create(args: any[]): Schema; } export function safeLoadAll(str: string, iterator: (doc: any) => void, opts?: LoadOptions): any; From b6d3f2111341118ba74bceb9b88faf5459d86b5c Mon Sep 17 00:00:00 2001 From: sclausen Date: Tue, 2 Feb 2016 09:30:05 +0100 Subject: [PATCH 55/59] fixed wrong argument usage in test --- js-yaml/js-yaml-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-yaml/js-yaml-tests.ts b/js-yaml/js-yaml-tests.ts index 82ef790a0..cd5f63c49 100644 --- a/js-yaml/js-yaml-tests.ts +++ b/js-yaml/js-yaml-tests.ts @@ -106,4 +106,4 @@ value = yaml.dump(str, dumpOpts); value = new yaml.YAMLException(); value = new yaml.Type(str, typeConstructorOptions); -value = yaml.Schema.create(schemaDefinition); +value = yaml.Schema.create([schemaDefinition]); From c7a3689e14e9b8041186292d4e930cb0ca1936a6 Mon Sep 17 00:00:00 2001 From: sclausen Date: Tue, 2 Feb 2016 09:32:41 +0100 Subject: [PATCH 56/59] fixed wrong header format --- js-yaml/js-yaml.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-yaml/js-yaml.d.ts b/js-yaml/js-yaml.d.ts index a075171f9..bb33779a8 100644 --- a/js-yaml/js-yaml.d.ts +++ b/js-yaml/js-yaml.d.ts @@ -1,6 +1,6 @@ +// Type definitions for js-yaml 3.0.2 // Compiled using typings@0.6.4 // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/52318243888c4aa02b3c0b5e68631577728ffcf8/js-yaml/js-yaml.d.ts -// Type definitions for js-yaml 3.0.2 // Project: https://github.com/nodeca/js-yaml // Definitions by: Bart van der Schoor // Definitions: https://github.com/borisyankov/DefinitelyTyped From 21466fa7c400e67b9af02a0e43e094a6df853fe4 Mon Sep 17 00:00:00 2001 From: sclausen Date: Tue, 2 Feb 2016 09:34:51 +0100 Subject: [PATCH 57/59] fixed wrong header format --- js-yaml/js-yaml.d.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/js-yaml/js-yaml.d.ts b/js-yaml/js-yaml.d.ts index bb33779a8..8476b000e 100644 --- a/js-yaml/js-yaml.d.ts +++ b/js-yaml/js-yaml.d.ts @@ -1,6 +1,4 @@ // Type definitions for js-yaml 3.0.2 -// Compiled using typings@0.6.4 -// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/52318243888c4aa02b3c0b5e68631577728ffcf8/js-yaml/js-yaml.d.ts // Project: https://github.com/nodeca/js-yaml // Definitions by: Bart van der Schoor // Definitions: https://github.com/borisyankov/DefinitelyTyped From 1ff6156a58d0e9002df8a2178c00d39b4886a691 Mon Sep 17 00:00:00 2001 From: sclausen Date: Tue, 2 Feb 2016 09:35:55 +0100 Subject: [PATCH 58/59] added contributor --- js-yaml/js-yaml.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js-yaml/js-yaml.d.ts b/js-yaml/js-yaml.d.ts index 8476b000e..85d9579cf 100644 --- a/js-yaml/js-yaml.d.ts +++ b/js-yaml/js-yaml.d.ts @@ -1,7 +1,7 @@ -// Type definitions for js-yaml 3.0.2 +// Type definitions for js-yaml 3.5.2 // Project: https://github.com/nodeca/js-yaml -// Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions by: Bart van der Schoor , Sebastian Clausen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module jsyaml { export function safeLoad(str: string, opts?: LoadOptions): any; From a80a024f79575373c781e5867debcbbad041a3a2 Mon Sep 17 00:00:00 2001 From: CaselIT Date: Wed, 3 Feb 2016 21:50:31 +0100 Subject: [PATCH 59/59] Changed internal types from class to interface Thanks to @pfzero https://github.com/DefinitelyTyped/DefinitelyTyped/issues/7021#issuecomment-179439322 --- mongodb/mongodb.d.ts | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index 2efe834e2..695f14c6a 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -11,6 +11,7 @@ declare module "mongodb" { import {EventEmitter} from 'events'; + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html export class MongoClient { constructor(); @@ -150,7 +151,7 @@ declare module "mongodb" { socketOptions?: SocketOptions; } - // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/db.html + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html export class Db extends EventEmitter { constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions); @@ -322,7 +323,7 @@ declare module "mongodb" { } // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html - export class Admin { + export interface Admin { // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser addUser(username: string, password: string, callback: MongoCallback): void; addUser(username: string, password: string, options?: AddUserOptions): Promise; @@ -552,7 +553,7 @@ declare module "mongodb" { } // Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html - export class Collection { + export interface Collection { // Get the collection name. collectionName: string; // Get the full collection namespace. @@ -871,7 +872,7 @@ declare module "mongodb" { } //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html - export class OrderedBulkOperation { + export interface OrderedBulkOperation { length: number; //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#execute execute(callback: MongoCallback): void; @@ -884,7 +885,14 @@ declare module "mongodb" { } //http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html - export class BulkWriteResult { + export interface BulkWriteResult { + ok: boolean; + nInserted: number; + nUpdated: number; + nUpserted: number; + nModified: number; + nRemoved: number; + getInsertedIds(): Array; getLastOp(): Object; getRawResponse(): Object; @@ -916,7 +924,7 @@ declare module "mongodb" { } //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html - export class FindOperatorsOrdered { + export interface FindOperatorsOrdered { delete(): OrderedBulkOperation; deleteOne(): OrderedBulkOperation; replaceOne(doc: Object): OrderedBulkOperation; @@ -926,7 +934,7 @@ declare module "mongodb" { } //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html - export class UnorderedBulkOperation { + export interface UnorderedBulkOperation { //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#execute execute(callback: MongoCallback): void; execute(options: FSyncOptions): Promise; @@ -938,7 +946,7 @@ declare module "mongodb" { } //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html - export class FindOperatorsUnordered { + export interface FindOperatorsUnordered { length: number; remove(): UnorderedBulkOperation; removeOne(): UnorderedBulkOperation; @@ -1044,7 +1052,7 @@ declare module "mongodb" { export type CursorResult = any | void | boolean; //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html - export class Cursor extends EventEmitter implements Readable { + export interface Cursor extends Readable, NodeJS.EventEmitter { sortValue: string; timeout: boolean; @@ -1161,7 +1169,7 @@ declare module "mongodb" { export type AggregationCursorResult = any | void; //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html - export class AggregationCursor extends EventEmitter implements Readable { + export interface AggregationCursor extends Readable, NodeJS.EventEmitter { // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize batchSize(value: number): AggregationCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone @@ -1225,7 +1233,7 @@ declare module "mongodb" { } //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html - export class CommandCursor extends EventEmitter implements Readable { + export interface CommandCursor extends Readable, NodeJS.EventEmitter { // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize batchSize(value: number): CommandCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#clone