Merge pull request #248 from Mobiletainment/patch-1

Updated Roadmap (markdown)
This commit is contained in:
Orta 2020-01-28 10:38:00 -05:00 коммит произвёл typescript-bot
Родитель e1b3de4c50 01a2cbbd05
Коммит 9b03cc2410
12 изменённых файлов: 78 добавлений и 79 удалений

Просмотреть файл

@ -11,7 +11,6 @@ This page outlines specific features and fixes that are scheduled or planned for
* Investigate [nominal typing support](https://github.com/Microsoft/TypeScript/issues/202)
* [Flattening declarations](https://github.com/Microsoft/TypeScript/issues/4433)
* Implement ES Decorator proposal
* Implement ES Private Fields
* Investigate [Ambient](https://github.com/Microsoft/TypeScript/issues/2900), [Deprecated](https://github.com/Microsoft/TypeScript/issues/390), and [Conditional](https://github.com/Microsoft/TypeScript/issues/3538) decorators
* [Investigate partial type argument inference](https://github.com/Microsoft/TypeScript/pull/26349)
* Quick fix to [Scaffold local `@types` packages](https://github.com/Microsoft/TypeScript/issues/25746)

Просмотреть файл

@ -19,7 +19,7 @@ const a = "Hello World";
<!-- prettier-ignore-start -->
[0]: <src/compiler/checker.ts - function inferTypes(>
[0]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L17674
[1]: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-6.html#strict-function-types
<!-- prettier-ignore-end -->

Просмотреть файл

@ -173,30 +173,30 @@ a different resolution.
[`createFileDiagnostic`][10] which should get called for all diagnostic errors.
<!-- prettier-ignore-start -->
[0]: <src/compiler/program.ts - function getDiagnosticsProducingTypeChecker>
[1]: <src/compiler/checker.ts - function getDiagnosticsWorker>
[2]: <src/compiler/checker.ts - function checkSourceFileWorker>
[3]: </src/compiler/types.ts - export interface NodeLinks>
[0]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/program.ts#L1557
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L33799
[2]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L33725
[3]: https://github.com/microsoft/TypeScript/blob/1bb6ea03//src/compiler/types.ts#L4224
[4]: GLOSSARY.md#statements
[ast]: GLOSSARY.md#statements
[5]: <src/compiler/checker.ts - function checkSourceElementWorker>
[6]: <src/compiler/checker.ts - function checkReturnStatement>
[7]: <src/compiler/checker.ts - export function getContainingFunction>
[8]: <src/compiler/utilities.ts - export function isFunctionLikeKind>
[9]: <src/compiler/checker.ts - function grammarErrorOnFirstToken>
[10]: <src/compiler/utilities.ts - export function createFileDiagnostic(file: SourceFile, start: number, length: number, message: DiagnosticMessage): DiagnosticWithLocation>
[5]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L33403
[6]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L31745
[7]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts
[8]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/utilities.ts
[9]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L36624
[10]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/utilities.ts#L5083
[11]: <src/compiler/checker.ts - function checkTruthinessExpression>
[12]: <src/compiler/checker.ts - function checkExpression>
[13]: <src/compiler/checker.ts - function checkIfStatement>
[14]: <src/compiler/checker.ts - function checkBinaryLikeExpression>
[15]: <src/compiler/checker.ts - function isTypeRelatedTo>
[16]: <src/compiler/checker.ts - function isSimpleTypeRelatedTo>
[17]: <src/compiler/checker.ts - function checkTypeRelatedTo>
[17]: <src/compiler/checker.ts - function isRelatedTo>
[19]: <src/compiler/types.ts - export const enum TypeFlags>
[13]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L30811
[14]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L27263
[15]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L14557
[16]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L14520
[17]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L13815
[17]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L14898
[19]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/types.ts#L4251
[20]: GLOSSARY.md#structural-type-system
[21]: <src/compiler/checker.ts - function isIdenticalTo>
[22]: <src/compiler/checker.ts - function recursiveTypeRelatedTo>
[22]: <src/compiler/checker.ts - function eachTypeRelatedToSomeType>
[23]: <src/compiler/checker.ts - function structuredTypeRelatedTo>
[21]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15074
[22]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15313
[22]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15179
[23]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15397
<!-- prettier-ignore-end -->

Просмотреть файл

@ -39,9 +39,9 @@ Emitting a declaration file is a multi-step process. It goes through the above e
goes through a
<!-- prettier-ignore-start -->
[0]: <src/compiler/emitter.ts - function writeBundle>
[1]: <src/compiler/emitter.ts - function createPrinter>
[2]: <src/compiler/emitter.ts - function print(>
[3]: <src/compiler/emitter.ts - const enum PipelinePhase>
[3]: <src/compiler/emitter.ts - function pipelineEmitWithHint(>
[0]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/emitter.ts#L1001
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/emitter.ts#L820
[2]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/emitter.ts#L1089
[3]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/emitter.ts#L812
[3]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/emitter.ts#L1223
<!-- prettier-ignore-end -->

Просмотреть файл

@ -12,7 +12,7 @@ reasonable dancing
<!-- prettier-ignore-start -->
[0]: <src/compiler/program.ts - function getDiagnosticsProducingTypeChecker>
[0]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/program.ts#L1557
[4]: GLOSSARY.md#statements
<!-- prettier-ignore-end -->

Просмотреть файл

@ -80,13 +80,13 @@ doesn't do that.
<!-- prettier-ignore-start -->
[0]: ./parser.md
[1]: <src/compiler/scanner.ts - export function createScanner>
[2]: <src/compiler/scanner.ts - function setText(>
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/scanner.ts#L856
[2]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/scanner.ts#L2287
[3]: GLOSSARY.md#incremental-parsing
[4]: <src/compiler/scanner.ts - function scan(>
[5]: <src/compiler/scanner.ts - case CharacterCodes.exclamation>
[4]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/scanner.ts#L1478
[5]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/scanner.ts#L1550
[6]: ./formatter.md
[7]: <src/services/classifier.ts - function createClassifier>
[8]: <src/compiler/types.ts - type JsxTokenSyntaxKind>
[9]: <src/compiler/types.ts - export const enum TokenFlags>
[7]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/classifier.ts#L3
[8]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/types.ts#L109
[9]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/types.ts#L1737
<!-- prettier-ignore-end -->

Просмотреть файл

@ -33,6 +33,6 @@ different uses:
####
<!-- prettier-ignore-start -->
[1]: <src/services/completions.ts - interface CompletionData {>
[2]: <src/services/completions.ts - function getCompletionData(>
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/completions.ts#L701
[2]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/completions.ts#L786
<!-- prettier-ignore-end -->

Просмотреть файл

@ -54,14 +54,14 @@ Changes look like this:
[`newFileChanges`][3] handles passing the set of
<!-- prettier-ignore-start -->
[0]: <src/services/textChanges.ts - export class ChangeTracker>
[1]: <src/services/textChanges.ts - type Change =>
[2]: <src/services/textChanges.ts - function createWriter>
[3]: <src/services/textChanges.ts - function newFileChanges>
[4]: <src/services/textChanges.ts - function getTextChangesFromChanges>
[5]: <src/services/textChanges.ts - function computeNewText>
[6]: <src/services/textChanges.ts - function getFormattedTextOfNode>
[7]: <src/compiler/emitter.ts - function createPrinter>
[8]: <src/services/textChanges.ts - function getNonformattedText>
[8]: <src/services/textChanges.ts - function applyChanges>
[0]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L232
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L125
[2]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L966
[3]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L864
[4]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L847
[5]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L877
[6]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L905
[7]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/emitter.ts#L820
[8]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L923
[8]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/textChanges.ts#L931
<!-- prettier-ignore-end -->

Просмотреть файл

@ -18,7 +18,7 @@ Then it starts If the letter is a - then start looking forwards to see if the ar
optionmap][4]
[0]: https://github.com/microsoft/TypeScript/blob/master/src/tsc/tsc.ts
[1]: <src/tsc/tsc.ts - function executeCommandLine>
[2]: <src/compiler/types.ts - export interface ParsedCommandLine>
[3]: <src/compiler/commandLineParser.ts - function parseCommandLineWorker>
[4]: <src/compiler/commandLineParser.ts - export const optionDeclarations>
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/tsc/tsc.ts
[2]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/types.ts#L5232
[3]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/commandLineParser.ts#L1192
[4]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/commandLineParser.ts#L222

Просмотреть файл

@ -93,8 +93,8 @@ These are some reference PRs to look at
- https://github.com/microsoft/TypeScript/pull/32281
<!-- prettier-ignore-start -->
[1]: <src/services/services.ts - function getCodeFixesAtPosition>
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/services.ts#L1852
[2]: src/services/codeFixProvider.ts
[3]: <src/services/services.ts - export function getFixes>
[4]: <src/services/codeFixProvider.ts - export function getFixes>
[3]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/services.ts
[4]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/services/codeFixProvider.ts#L55
<!-- prettier-ignore-end -->

Просмотреть файл

@ -57,7 +57,7 @@ moment;`
[1]: https://github.com/microsoft/TypeScript/blob/master/tests/cases/fourslash
[2]: https://github.com/microsoft/TypeScript/blob/master/src/testRunner/runner.ts
[3]: https://github.com/microsoft/TypeScript/blob/master/src/harness/fourslashImpl.ts
[4]: <src/harness/fourslashImpl.ts - function runFourSlashTest(>
[5]: <src/harness/fourslashImpl.ts - function runFourSlashTestContent(>
[5]: <src/harness/fourslashImpl.ts - function parseTestData(>
[4]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/harness/fourslashImpl.ts#L3579
[5]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/harness/fourslashImpl.ts#L3584
[5]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/harness/fourslashImpl.ts#L3634
<!-- prettier-ignore-end -->

Просмотреть файл

@ -175,30 +175,30 @@ TODO: what are substituted types?
[`createFileDiagnostic`][10] which should get called for all diagnostic errors.
<!-- prettier-ignore-start -->
[0]: <src/compiler/program.ts - function getDiagnosticsProducingTypeChecker>
[1]: <src/compiler/checker.ts - function getDiagnosticsWorker>
[2]: <src/compiler/checker.ts - function checkSourceFileWorker>
[3]: </src/compiler/types.ts - export interface NodeLinks>
[0]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/program.ts#L1557
[1]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L33799
[2]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L33725
[3]: https://github.com/microsoft/TypeScript/blob/1bb6ea03//src/compiler/types.ts#L4224
[4]: GLOSSARY.md#statements
[ast]: GLOSSARY.md#statements
[5]: <src/compiler/checker.ts - function checkSourceElementWorker>
[6]: <src/compiler/checker.ts - function checkReturnStatement>
[7]: <src/compiler/checker.ts - export function getContainingFunction>
[8]: <src/compiler/utilities.ts - export function isFunctionLikeKind>
[9]: <src/compiler/checker.ts - function grammarErrorOnFirstToken>
[10]: <src/compiler/utilities.ts - export function createFileDiagnostic(file: SourceFile, start: number, length: number, message: DiagnosticMessage): DiagnosticWithLocation>
[5]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L33403
[6]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L31745
[7]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts
[8]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/utilities.ts
[9]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L36624
[10]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/utilities.ts#L5083
[11]: <src/compiler/checker.ts - function checkTruthinessExpression>
[12]: <src/compiler/checker.ts - function checkExpression>
[13]: <src/compiler/checker.ts - function checkIfStatement>
[14]: <src/compiler/checker.ts - function checkBinaryLikeExpression>
[15]: <src/compiler/checker.ts - function isTypeRelatedTo>
[16]: <src/compiler/checker.ts - function isSimpleTypeRelatedTo>
[17]: <src/compiler/checker.ts - function checkTypeRelatedTo>
[17]: <src/compiler/checker.ts - function isRelatedTo>
[19]: <src/compiler/types.ts - export const enum TypeFlags>
[13]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L30811
[14]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L27263
[15]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L14557
[16]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L14520
[17]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L13815
[17]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L14898
[19]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/types.ts#L4251
[20]: GLOSSARY.md#structural-type-system
[21]: <src/compiler/checker.ts - function isIdenticalTo>
[22]: <src/compiler/checker.ts - function recursiveTypeRelatedTo>
[22]: <src/compiler/checker.ts - function eachTypeRelatedToSomeType>
[23]: <src/compiler/checker.ts - function structuredTypeRelatedTo>
[21]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15074
[22]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15313
[22]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15179
[23]: https://github.com/microsoft/TypeScript/blob/1bb6ea03/src/compiler/checker.ts#L15397
<!-- prettier-ignore-end -->