-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…26283) * Don't store @template constraint in a TypeParameterDeclaration node * Code review * Update API
- Loading branch information
Andy
authored
Aug 10, 2018
1 parent
5efd1cb
commit a73161e
Showing
9 changed files
with
74 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// <reference path='fourslash.ts' /> | ||
|
||
/////** | ||
//// * @template {/**/ | ||
//// */ | ||
////function f() {} | ||
|
||
goTo.marker(""); | ||
edit.insert("n"); | ||
edit.insert("u"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/// <reference path='fourslash.ts'/> | ||
|
||
// @allowJs: true | ||
// @checkJs: true | ||
// @Filename: /foo.js | ||
|
||
/////** | ||
//// * Doc | ||
//// * @template {new (...args: any[]) => any} T | ||
//// * @param {T} cls | ||
//// */ | ||
////function /**/myMixin(cls) { | ||
//// return class extends cls {} | ||
////} | ||
|
||
verify.quickInfoAt("", | ||
`function myMixin<T extends new (...args: any[]) => any>(cls: T): { | ||
new (...args: any[]): (Anonymous class); | ||
prototype: myMixin<any>.(Anonymous class); | ||
} & T`, | ||
"Doc"); |