Skip to content

Commit

Permalink
Changing dojo/_base/lang mixin signature to match documentation (Defi…
Browse files Browse the repository at this point in the history
…nitelyTyped#10991)

* adding multiple signatures

* update
  • Loading branch information
mmckenziedev authored and vvakame committed Sep 7, 2016
1 parent 2364c30 commit 14c74ee
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion dojo/dojo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5686,7 +5686,23 @@ declare namespace dojo {
* @param dest The object to which to copy/add all properties contained in source. If dest is falsy, thena new object is manufactured before copying/adding properties begins.
* @param sources One of more objects from which to draw all properties to copy into dest. sources are processedleft-to-right and if more than one of these objects contain the same property name, the right-mostvalue "wins".
*/
mixin(dest: Object, source: Object, sources?: Object[]): Object;
mixin<T>(dest: T): T;
mixin<T, U>(
dest: T,
source: U
): T & U;
mixin<T, U, V>(
dest: T,
source1: U,
source2: V
): T & U & V;
mixin<T, U, V, W>(
dest: T,
source1: U,
source2: V,
source3: W
): T & U & V & W;
mixin<T>(dest: Object, ...sources: Object[]): T;
/**
* similar to hitch() except that the scope object is left to be
* whatever the execution context eventually becomes.
Expand Down

0 comments on commit 14c74ee

Please sign in to comment.