mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #2450 from szarouski/master
Add missing api for requirejs and lodash
This commit is contained in:
Vendored
+8
@@ -6201,6 +6201,14 @@ declare module _ {
|
||||
**/
|
||||
uniqueId(prefix?: string): string;
|
||||
}
|
||||
|
||||
//_.noop
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* A no-operation function.
|
||||
**/
|
||||
noop(): void;
|
||||
}
|
||||
|
||||
interface ListIterator<T, TResult> {
|
||||
(value: T, index: number, list: T[]): TResult;
|
||||
|
||||
Vendored
+10
@@ -342,6 +342,16 @@ interface RequireDefine {
|
||||
* callback return module definition
|
||||
**/
|
||||
(name: string, ready: Function): void;
|
||||
|
||||
/**
|
||||
* Used to allow a clear indicator that a global define function (as needed for script src browser loading) conforms
|
||||
* to the AMD API, any global define function SHOULD have a property called "amd" whose value is an object.
|
||||
* This helps avoid conflict with any other existing JavaScript code that could have defined a define() function
|
||||
* that does not conform to the AMD API.
|
||||
* define.amd.jQuery is specific to jQuery and indicates that the loader is able to account for multiple version
|
||||
* of jQuery being loaded simultaneously.
|
||||
*/
|
||||
amd: Object;
|
||||
}
|
||||
|
||||
// Ambient declarations for 'require' and 'define'
|
||||
|
||||
Reference in New Issue
Block a user