mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-09 03:30:09 +00:00
added _.noConflict definition
This commit is contained in:
@@ -722,6 +722,8 @@ _.mixin({
|
||||
}
|
||||
});
|
||||
|
||||
var lodash = <typeof _>_.noConflict();
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var iceCream = { flavor: "chocolate" };
|
||||
|
||||
25
lodash/lodash.d.ts
vendored
25
lodash/lodash.d.ts
vendored
@@ -2727,21 +2727,20 @@ declare module _ {
|
||||
**/
|
||||
export function mixin(object: Dictionary<(value: any) => any>): void;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Give control of the "_" variable back to its previous owner.
|
||||
* Returns a reference to the Lo-Dash object.
|
||||
* @return Lo-Dash object reference.
|
||||
* Reverts the '_' variable to its previous value and returns a reference to the lodash function.
|
||||
* @return The lodash function.
|
||||
**/
|
||||
export function noConflict(): any;
|
||||
export function noConflict(): typeof _;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user