Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
9,003 additions
and
83 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,15 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// interface StringExample { | ||
//// /** Something generic */ | ||
//// [p: string]: any; | ||
//// /** Something specific */ | ||
//// property: number; | ||
//// } | ||
//// function stringExample(e: StringExample) { | ||
//// console.log(e./*property*/property); | ||
//// console.log(e./*string*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("property", "(property) StringExample.property: number", 'Something specific'); | ||
verify.quickInfoAt("string", "(index) StringExample[string]: any", "Something generic"); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// class MultipleClass { | ||
//// /** Something generic */ | ||
//// [key: number | symbol | `data-${string}` | `data-${number}`]: string; | ||
//// } | ||
//// function multipleClass(e: typeof MultipleClass) { | ||
//// console.log(e./*multipleClass*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("multipleClass", "any"); |
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,12 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// type AliasExample = { | ||
//// /** Something generic */ | ||
//// [p: string]: string; | ||
//// [key: `any${string}`]: string; //TODOFIX add JSDoc here | ||
//// } | ||
//// function aliasExample(e: AliasExample) { | ||
//// console.log(e./*alias*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("alias", "(index) AliasExample[string | `any${string}`]: string", "Something generic"); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// type SymbolAlias = { | ||
//// /** Something generic */ | ||
//// [p: symbol]: string; | ||
//// } | ||
//// function symbolAlias(e: SymbolAlias) { | ||
//// console.log(e./*symbolAlias*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("symbolAlias", "any"); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// interface SymbolExample { | ||
//// /** Something generic */ | ||
//// [key: symbol]: string; | ||
//// } | ||
//// function symbolExample(e: SymbolExample) { | ||
//// console.log(e./*symbol*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("symbol", "any") |
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,13 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// interface LiteralExample { | ||
//// /** Something generic */ | ||
//// [key: `data-${string}`]: string; | ||
//// /** Something else */ | ||
//// [key: `prefix${number}`]: number; | ||
//// } | ||
//// function literalExample(e: LiteralExample) { | ||
//// console.log(e./*literal*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("literal", "any"); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// interface MultipleExample { | ||
//// /** Something generic */ | ||
//// [key: string | number | symbol]: string; | ||
//// } | ||
//// function multipleExample(e: MultipleExample) { | ||
//// console.log(e./*multiple*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("multiple", "(index) MultipleExample[string | number | symbol]: string", "Something generic"); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// interface Multiple1Example { | ||
//// /** Something generic */ | ||
//// [key: number | symbol | `data-${string}` | `data-${number}`]: string; | ||
//// } | ||
//// function multiple1Example(e: Multiple1Example) { | ||
//// console.log(e./*multiple1*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("multiple1", "any"); |
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,17 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// interface Literal1Example { | ||
//// /** Something generic */ | ||
//// [key: `prefix${string}`]: number | string; | ||
//// /** Something else */ | ||
//// [key: `prefix${number}`]: number; | ||
//// } | ||
//// function literal1Example(e: Literal1Example) { | ||
//// console.log(e./*literal1*/prefixMember); | ||
//// console.log(e./*literal2*/anything); | ||
//// console.log(e./*literal3*/prefix0); | ||
//// } | ||
|
||
verify.quickInfoAt("literal1", "(index) Literal1Example[`prefix${string}`]: string | number", "Something generic"); | ||
verify.quickInfoAt("literal2", "any"); | ||
verify.quickInfoAt("literal3", "(index) Literal1Example[`prefix${string}` | `prefix${number}`]: string | number", "Something generic\nSomething else"); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// class StringClass { | ||
//// /** Something generic */ | ||
//// static [p: string]: any; | ||
//// } | ||
//// function stringClass(e: typeof StringClass) { | ||
//// console.log(e./*stringClass*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("stringClass", "(index) StringClass[string]: any", "Something generic"); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// class SymbolClass { | ||
//// /** Something generic */ | ||
//// static [p: symbol]: any; | ||
//// } | ||
//// function symbolClass(e: typeof SymbolClass) { | ||
//// console.log(e./*symbolClass*/anything); | ||
//// } | ||
|
||
verify.quickInfoAt("symbolClass", "any"); |
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,17 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
//// class LiteralClass { | ||
//// /** Something generic */ | ||
//// static [key: `prefix${string}`]: any; | ||
//// /** Something else */ | ||
//// static [key: `prefix${number}`]: number; | ||
//// } | ||
//// function literalClass(e: typeof LiteralClass) { | ||
//// console.log(e./*literal1Class*/prefixMember); | ||
//// console.log(e./*literal2Class*/anything); | ||
//// console.log(e./*literal3Class*/prefix0); | ||
//// } | ||
|
||
verify.quickInfoAt("literal1Class", "(index) LiteralClass[`prefix${string}`]: any", "Something generic"); | ||
verify.quickInfoAt("literal2Class", "any"); | ||
verify.quickInfoAt("literal3Class", "(index) LiteralClass[`prefix${string}` | `prefix${number}`]: any", "Something generic\nSomething else") |
This file was deleted.
Oops, something went wrong.