Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript powered by TypeScript #5044

Closed
wants to merge 224 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
f5eb61a
Add support for parsing JSDoc types.
CyrusNajmabadi Apr 6, 2015
6b51c54
Tests for jsdoc comment parsing.
CyrusNajmabadi Apr 6, 2015
4dba649
Additional test.
CyrusNajmabadi Apr 6, 2015
a63e260
Additional jsdoc tests. Simplify test output.
CyrusNajmabadi Apr 7, 2015
803a8e2
Add test for non-nullable type.
CyrusNajmabadi Apr 7, 2015
b5dfb0d
Add tests for record types.
CyrusNajmabadi Apr 7, 2015
80803ca
tests for parsing generics.
CyrusNajmabadi Apr 7, 2015
bc1659a
Add negative tests for parsing jsdoc types.
CyrusNajmabadi Apr 7, 2015
57e9c94
Add additional negative test.
CyrusNajmabadi Apr 7, 2015
c8876b0
Simplify code.
CyrusNajmabadi Apr 7, 2015
8ba61f6
Mark if nodes were parsed from a javascript file or not.
CyrusNajmabadi Apr 7, 2015
50bb499
Support passing a start/length when creating a scanner.
CyrusNajmabadi Apr 7, 2015
604988c
Add support for parsing JSDoc comments.
CyrusNajmabadi Apr 7, 2015
2e58435
Add tests for parsing JSDoc comments.
CyrusNajmabadi Apr 7, 2015
3a33884
Add support for converting JSDoc types to our own types.
CyrusNajmabadi Apr 7, 2015
6292f3e
Add tests for JSDoc comment intellisense.
CyrusNajmabadi Apr 8, 2015
39c8c0d
Add support for function return types in JSDoc comments.
CyrusNajmabadi Apr 8, 2015
c8e106e
Don't use a sourceFile if one isn't passed in.
CyrusNajmabadi Apr 8, 2015
cef25bf
Only check source file when we have one.
CyrusNajmabadi Apr 8, 2015
d886b0f
Rename property. Add walking for jsdoc nodes.
CyrusNajmabadi Apr 8, 2015
e8a3d24
Set parent pointers for JSDoc comments.
CyrusNajmabadi Apr 8, 2015
d319e86
Remove special casing for nodes without parents now that we are prope…
CyrusNajmabadi Apr 8, 2015
047ac2c
Use actual type parameter nodes in doc comments.
CyrusNajmabadi Apr 8, 2015
0cb45c5
Add support for generic type parameters in JSDoc comments.
CyrusNajmabadi Apr 8, 2015
7ff85b3
Only clear children if they exist.
CyrusNajmabadi Apr 8, 2015
8564a8b
Add support for variadic JSDoc types.
CyrusNajmabadi Apr 8, 2015
cd2d5cd
Property show variadic parameters for javascript functions.
CyrusNajmabadi Apr 8, 2015
2cb375a
Share code for getting information about a parameter from a JSDoc com…
CyrusNajmabadi Apr 8, 2015
c8d8e0b
Simplify parameter handling code.
CyrusNajmabadi Apr 8, 2015
e8e1819
Report error when ... is used in a .js file.
CyrusNajmabadi Apr 8, 2015
d1cf715
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 12, 2015
e0837f8
Treat JSDoc types as actual Typenodes.
CyrusNajmabadi Apr 12, 2015
c4ee838
Use a single getTypeFromTypeNode function for normal types and JSDocT…
CyrusNajmabadi Apr 12, 2015
8622b35
initial support for function types.
CyrusNajmabadi Apr 12, 2015
e7f61e6
Add support for JSDoc construct signatures.
CyrusNajmabadi Apr 12, 2015
17d80e7
additional test.
CyrusNajmabadi Apr 12, 2015
ed8afa2
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 14, 2015
7d2dd0c
Updating baselines.
CyrusNajmabadi Apr 14, 2015
c405e6a
Handle 'returns' inside JSDoc comments
CyrusNajmabadi Apr 14, 2015
6561906
Add support for top level JSDoc union types.
CyrusNajmabadi Apr 14, 2015
6599a4b
Skip whitespace before parsing out a type.
CyrusNajmabadi Apr 14, 2015
49f8a41
Add support for param tags where the type follows the identifier name.
CyrusNajmabadi Apr 14, 2015
dcfb932
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 14, 2015
6732e21
Add support for bracketed JSDoc parameter names.
CyrusNajmabadi Apr 15, 2015
da256dd
Delete empty test.
CyrusNajmabadi Apr 15, 2015
613bb30
Supported bracketed parameter names with an optional initializer.
CyrusNajmabadi Apr 15, 2015
3e04643
Add support for parsing JSDoc array types.
CyrusNajmabadi Apr 15, 2015
f190ac8
Add type checking for JSDoc array types.
CyrusNajmabadi Apr 15, 2015
6c60dad
Add support for parsing nullable/non-nullable types with syntax at th…
CyrusNajmabadi Apr 15, 2015
e43fc69
Support arbitrary identifier names as type reference names in JSDoc c…
CyrusNajmabadi Apr 15, 2015
0884fdb
Use undefinedType for JSDoc type results, not 'undefined'
CyrusNajmabadi Apr 15, 2015
2bb5e5a
Add support for tuple types in JSDoc types.
CyrusNajmabadi Apr 15, 2015
96f20da
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 16, 2015
0c8e669
Properly set parents for all js doc nodes.
CyrusNajmabadi Apr 16, 2015
dbf6e07
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 16, 2015
6ac6ed8
Simplify initialization/cleanup in the parser.
CyrusNajmabadi Apr 16, 2015
9169acf
Proactively parse out js doc comments for .js files.
CyrusNajmabadi Apr 16, 2015
8645b69
Utilize the core parsing functionality to support parsing JSDoc expre…
CyrusNajmabadi Apr 16, 2015
5544639
Add test for javascript syntactic diagnostics.
CyrusNajmabadi Apr 16, 2015
4840d69
Move binding code back into the binder.
CyrusNajmabadi Apr 16, 2015
a9cd568
Fix spacing.
CyrusNajmabadi Apr 16, 2015
ab07292
Simplify checker.
CyrusNajmabadi Apr 16, 2015
3710101
Remove unnecessary file.
CyrusNajmabadi Apr 16, 2015
26e94df
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 17, 2015
5e2e77e
Handle binding of JSDocFunctionTypes in a uniform manner with Consruc…
CyrusNajmabadi Apr 17, 2015
9b7cf50
Simplify binding of JSDocFunctionTypes.
CyrusNajmabadi Apr 17, 2015
f261ea9
Simplify recursion in the binder. Always go through bindChildren.
CyrusNajmabadi Apr 17, 2015
b406d5a
CR feedback.
CyrusNajmabadi Apr 17, 2015
ad4a172
CR feedback.
CyrusNajmabadi Apr 17, 2015
d4911b7
CR feedback.
CyrusNajmabadi Apr 17, 2015
72495f8
CR feedback.
CyrusNajmabadi Apr 17, 2015
0c83e46
CR feedback.
CyrusNajmabadi Apr 17, 2015
05ffaaf
CR feedback.
CyrusNajmabadi Apr 17, 2015
28c80c3
CR feedback.
CyrusNajmabadi Apr 17, 2015
c92c63b
CR feedback.
CyrusNajmabadi Apr 17, 2015
6f2d1b7
CR feedback.
CyrusNajmabadi Apr 17, 2015
7f28fd2
CR feedback.
CyrusNajmabadi Apr 17, 2015
91cc72a
Merge branch 'getTypeFromTypeNode' into jsDocSupport
CyrusNajmabadi Apr 17, 2015
a33f703
CR feedback.
CyrusNajmabadi Apr 17, 2015
48a703b
CR feedback.
CyrusNajmabadi Apr 17, 2015
6157ac7
CR feedback.
CyrusNajmabadi Apr 17, 2015
01143cf
CR feedback.
CyrusNajmabadi Apr 17, 2015
de5e13c
CR feedback.
CyrusNajmabadi Apr 17, 2015
92f696d
CR feedback.
CyrusNajmabadi Apr 17, 2015
57d01df
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 17, 2015
da04504
Merge branch 'getTypeFromTypeNode' into jsDocSupport
CyrusNajmabadi Apr 17, 2015
95ca000
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 17, 2015
a3f3baa
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 17, 2015
64b9792
Remove code.
CyrusNajmabadi Apr 17, 2015
580db27
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 20, 2015
d76f415
Type JSDocRecordMembers to look like PropertyDeclarations.
CyrusNajmabadi Apr 20, 2015
316d25c
Add support for object literals in JSDoc comments.
CyrusNajmabadi Apr 20, 2015
548aa85
Add support for 'this-types' from JSDoc comments.
CyrusNajmabadi Apr 20, 2015
a6a57c2
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 23, 2015
393eaa1
Get all members of the types of a union type for javascript completions.
CyrusNajmabadi Apr 23, 2015
6d186cb
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 24, 2015
f1d1a66
PR feedback.
CyrusNajmabadi Apr 24, 2015
43c1796
Rename type.
CyrusNajmabadi Apr 25, 2015
b16be6c
Represent jsdoc comments in the tree as an actual node.
CyrusNajmabadi Apr 26, 2015
fea1485
Properly set pos/end on template tags.
CyrusNajmabadi Apr 26, 2015
48a6554
Remove the JSDocCommentInfo type. It's only used for testing now.
CyrusNajmabadi Apr 26, 2015
507caf7
Remove the JSDocCommentInfo temporary type.
CyrusNajmabadi Apr 26, 2015
f915d6f
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Apr 27, 2015
5d6a1e8
Use real type nodes for primitive types.
CyrusNajmabadi Apr 27, 2015
47ad2f5
Add support for classifying jsdoc comments
CyrusNajmabadi Apr 27, 2015
f505486
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 4, 2015
fdc9ba1
use pos/end instead of width()
CyrusNajmabadi May 4, 2015
3b656e8
Deal properly with type parameters not parented by signatures/classes…
CyrusNajmabadi May 5, 2015
b3e75b0
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 8, 2015
ab44f95
Support @type tags referencing JS values.
CyrusNajmabadi May 8, 2015
169e631
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 8, 2015
df73f4f
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 8, 2015
30cf902
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 15, 2015
c3b3d39
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 26, 2015
daeed1b
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 28, 2015
864525a
Merge branch 'master' into jsDocSupport
CyrusNajmabadi May 28, 2015
729c96c
Move code.
CyrusNajmabadi May 28, 2015
0e23b04
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Jun 2, 2015
c0e61b8
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Jun 2, 2015
feec07c
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Jun 3, 2015
d8ef02a
Added non-ts file support to the server
billti Jun 5, 2015
1725e9f
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Jun 30, 2015
34c128e
Added JSX support
billti Jun 30, 2015
74914a5
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Jul 16, 2015
b55a800
Starting work for JS modules
RyanCavanaugh Jul 20, 2015
c8d2553
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Jul 21, 2015
658d682
Merge remote-tracking branch 'upstream/jsDocSupport' into jsDocSupport
RyanCavanaugh Jul 21, 2015
9169504
JS module progress
RyanCavanaugh Jul 22, 2015
327c297
JSDoc progress
RyanCavanaugh Jul 27, 2015
c36fa8d
Move special types into lib.d.ts
RyanCavanaugh Jul 27, 2015
dabace3
JS module progress
RyanCavanaugh Jul 28, 2015
cd4270b
Symbol baseline changes caused by modifying lib.d.ts
RyanCavanaugh Jul 28, 2015
22722ce
Copy lib.d.ts when updating Sublime
RyanCavanaugh Jul 28, 2015
42f5ae5
Merge remote-tracking branch 'upstream/master' into jsDocSupport
RyanCavanaugh Aug 7, 2015
c7712dc
Support commonjs modules in JS inference mode
RyanCavanaugh Aug 9, 2015
6e8a8e6
Merge branch 'master' into jsDocSupport
CyrusNajmabadi Aug 11, 2015
070de86
Refactor a bit
RyanCavanaugh Aug 11, 2015
58a66fb
Address CR feedback
RyanCavanaugh Aug 19, 2015
d6c0294
Merge remote-tracking branch 'upstream/master' into jsDocSupport.
RyanCavanaugh Aug 20, 2015
3df56c6
Merge remote-tracking branch 'upstream/master' into jsDocSupport
RyanCavanaugh Aug 21, 2015
ead37e1
Fix up resolution for JS module imports
RyanCavanaugh Aug 21, 2015
b6642ff
Merge upstream/jsDocSupport
RyanCavanaugh Aug 21, 2015
0fa6f9c
Merge remote-tracking branch 'zhengboli/JsDocIntellisense2' into Infl…
billti Aug 21, 2015
95a3fc5
Use explicit method to write to stdout
billti Aug 23, 2015
c9b5910
Added socket support for communication
billti Aug 23, 2015
58ec4f1
tcp socket support
billti Aug 24, 2015
213cb35
Allow non-TS files if file list is given
billti Aug 24, 2015
732ed7f
Support top-level module.exports = foo
RyanCavanaugh Aug 26, 2015
e60a734
Merge branch 'release-1.6' into Inflight
billti Sep 15, 2015
f75b010
Updates for API changes
billti Sep 15, 2015
a7511ae
Added jsx to file types supported
billti Sep 16, 2015
263d985
Updated LKG
billti Sep 16, 2015
2aba0d3
Fix up JS handling for modules and reloads
billti Sep 17, 2015
90338ec
Update LKG
billti Sep 17, 2015
994d8d4
merge with InFlight
vladima Sep 22, 2015
e6967d5
check isCommonJsExportAssignment\isAmdExportAssignment only on javasc…
vladima Sep 22, 2015
3fbe7b9
Merge branch 'master' into JSDocAndJSModules
vladima Sep 22, 2015
9a723a7
fixed isJavaScript check
vladima Sep 23, 2015
a7cbe1f
synchronized check for Node based sys with master
vladima Sep 23, 2015
9005546
use os dependent default location for Chrome
vladima Sep 23, 2015
30b7bf6
[debug] allow to override file type via '@language = javascript'
vladima Sep 23, 2015
f9ad4e7
simplify isJavaScriptFile check
vladima Sep 23, 2015
e0a3643
Fetch JSDoc comments from variable statements if necessary
vladima Sep 23, 2015
d08117b
added test for multiple variable declarations
vladima Sep 23, 2015
01186b7
Merge pull request #4943 from Microsoft/JSDocCommentsOnVariableStatem…
vladima Sep 24, 2015
3f41564
[Salsa] Don't put things in CommonJS modules into the global scope
RyanCavanaugh Sep 24, 2015
d0864af
Class inference from 'this' assignments
RyanCavanaugh Sep 24, 2015
be74a5c
Class inference from 'this' assignments in JS
RyanCavanaugh Sep 24, 2015
5f6ccfe
Fix spacing
RyanCavanaugh Sep 24, 2015
bddc07d
Merge pull request #4958 from RyanCavanaugh/JSDocAndJSModules
RyanCavanaugh Sep 24, 2015
885755f
Fix spacing / indenting
RyanCavanaugh Sep 24, 2015
1e93d08
Merge branch 'master' into JSDocAndJSModules
vladima Sep 24, 2015
975249a
Merge pull request #4954 from RyanCavanaugh/noPollutionFromCJS
RyanCavanaugh Sep 24, 2015
972b669
Merge branch 'JSDocAndJSModules' of https://github.com/Microsoft/Type…
vladima Sep 24, 2015
7c3859c
Merge branch 'master' into JSDocAndJSModules
vladima Sep 24, 2015
2341842
Merge branch 'master' into JSDocAndJSModules
vladima Sep 25, 2015
8e63a32
Merge pull request #4962 from Microsoft/expandDocTemplateCoverage
DanielRosenwasser Sep 25, 2015
4b6271d
Merge branch 'master' into JSDocAndJSModules
vladima Sep 25, 2015
8205a0a
Merge pull request #4979 from Microsoft/grabParamsFromInitializers
DanielRosenwasser Sep 26, 2015
558c6c8
merge with master
vladima Sep 30, 2015
d54e88c
in javascript files after dot show only identifiers from current file
vladima Sep 30, 2015
ebb843d
do not add javascript completion items if item with the same name alr…
vladima Sep 30, 2015
af29ddb
addressed PR feedback
vladima Sep 30, 2015
36c3d87
fix typos
vladima Sep 30, 2015
da9b200
Merge pull request #5031 from Microsoft/jsCompletion
vladima Sep 30, 2015
456a05b
merge with master
vladima Sep 30, 2015
8a032ea
use sortText to sort entries in completion list
vladima Sep 30, 2015
25b6b99
compute expected content of completion list
vladima Oct 1, 2015
00ec868
Merge pull request #5047 from Microsoft/useSortTextToSortEntries
vladima Oct 1, 2015
8c9dda1
merge with master
vladima Oct 1, 2015
7fd399a
fix issues found by linter
vladima Oct 1, 2015
a0a87e7
recognize calls to 'require' function in preProcess
vladima Oct 2, 2015
6e76dd1
fix linter issues
vladima Oct 2, 2015
c53f81e
recognize define calls
vladima Oct 2, 2015
236a4b5
merge with master
vladima Oct 2, 2015
d06cb1f
store types obtained in getTypeFromJSDoc... in nodeLinks
vladima Oct 2, 2015
a1832e4
do not add 'require', 'exports', 'module' into list of modules if the…
vladima Oct 2, 2015
85bd15a
fix linter issues
vladima Oct 2, 2015
7032ab5
Merge remote-tracking branch 'origin/JSDocAndJSModules' into preproce…
vladima Oct 2, 2015
99e3db9
Merge pull request #5065 from Microsoft/preprocessJs
vladima Oct 2, 2015
98687fb
WIP
RyanCavanaugh Oct 2, 2015
f18bbe3
WIP 2
RyanCavanaugh Oct 2, 2015
50edf2f
Merge branch 'JSDocAndJSModules' of https://github.com/Microsoft/Type…
RyanCavanaugh Oct 2, 2015
4410d0e
Fix lint errors
RyanCavanaugh Oct 3, 2015
73200cf
merge with master
vladima Oct 7, 2015
0af5b5d
Rework `isFoo` functions to take `Node`s
RyanCavanaugh Oct 7, 2015
505926d
Merge branch 'master' into JSDocAndJSModules
vladima Oct 9, 2015
eb30850
Cache contextual types of define calls
RyanCavanaugh Oct 12, 2015
50c987a
Renamed 'isCalledTo...'
RyanCavanaugh Oct 12, 2015
202562e
Don't bother checking for declared properties in JavaScript
RyanCavanaugh Oct 12, 2015
4c433c7
Use `unknownType` in place of `anyType` here for consistency
RyanCavanaugh Oct 12, 2015
b130365
Merge remote-tracking branch 'upstream/master' into JSDocAndJSModules
RyanCavanaugh Oct 12, 2015
312df8c
Rename some things
RyanCavanaugh Oct 12, 2015
5344e53
Remove AMD support; refactor how binding works; delete obsolete tests
RyanCavanaugh Oct 13, 2015
87d0596
Remove more unused code
RyanCavanaugh Oct 13, 2015
6ee9517
Remove more AMD code
RyanCavanaugh Oct 13, 2015
a993891
Keep removing AMD code
RyanCavanaugh Oct 13, 2015
dec40aa
Remove unused variables
RyanCavanaugh Oct 13, 2015
1310007
Move JS Doc return type lookups to `getSignatureFromDeclaration`
RyanCavanaugh Oct 14, 2015
07931a3
Update LKG
RyanCavanaugh Oct 14, 2015
8314872
Undo stack trace limit change
RyanCavanaugh Oct 14, 2015
d04a0f9
Merge remote-tracking branch 'upstream/master' into JSDocAndJSModules
RyanCavanaugh Oct 14, 2015
58a1194
Remove binder and parser re-scans for CommonJS module detection
RyanCavanaugh Oct 14, 2015
cabd012
Cleanup
RyanCavanaugh Oct 14, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ desc("Updates the sublime plugin's tsserver");
task("update-sublime", ["local", serverFile], function() {
jake.cpR(serverFile, "../TypeScript-Sublime-Plugin/tsserver/");
jake.cpR(serverFile + ".map", "../TypeScript-Sublime-Plugin/tsserver/");
jake.cpR(path.join(builtLocalDirectory, "lib.d.ts"), "../TypeScript-Sublime-Plugin/tsserver/");
jake.cpR(path.join(builtLocalDirectory, "lib.es6.d.ts"), "../TypeScript-Sublime-Plugin/tsserver/");
});

var tslintRuleDir = "scripts/tslint";
Expand Down
16 changes: 16 additions & 0 deletions lib/lib.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,22 @@ interface PromiseLike<T> {
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
}


declare namespace CommonJS {
export var require: Require;

export var exports: any;

interface Exports { }
interface Module {
exports: Exports;
}

interface Require {
(moduleName: string): any;
}
}

interface ArrayLike<T> {
length: number;
[n: number]: T;
Expand Down
45 changes: 44 additions & 1 deletion lib/lib.core.es6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,22 @@ interface PromiseLike<T> {
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
}


declare namespace CommonJS {
export var require: Require;

export var exports: any;

interface Exports { }
interface Module {
exports: Exports;
}

interface Require {
(moduleName: string): any;
}
}

interface ArrayLike<T> {
length: number;
[n: number]: T;
Expand Down Expand Up @@ -3965,7 +3981,34 @@ interface ObjectConstructor {
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects to copy properties from.
* @param source The source object from which to copy properties.
*/
assign<T, U>(target: T, source: U): T & U;

/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;

/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;

/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: any, ...sources: any[]): any;

Expand Down
Loading