Skip to content

Commit 55c362c

Browse files
committed
Better typings for Promise.resolve(), like microsoft#31117
0 parents  commit 55c362c

File tree

52,057 files changed

+4731932
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52,057 files changed

+4731932
-0
lines changed

.dockerignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
node_modules
2+
.node_modules
3+
built/*
4+
test-args.txt
5+
~*.docx
6+
\#*\#
7+
.\#*
8+
src/harness/*.js
9+
src/compiler/diagnosticInformationMap.generated.ts
10+
src/compiler/diagnosticMessages.generated.json
11+
src/parser/diagnosticInformationMap.generated.ts
12+
src/parser/diagnosticMessages.generated.json
13+
rwc-report.html
14+
*.swp
15+
build.json
16+
*.actual
17+
*.config
18+
scripts/debug.bat
19+
scripts/run.bat
20+
scripts/word2md.js
21+
scripts/buildProtocol.js
22+
scripts/ior.js
23+
scripts/authors.js
24+
scripts/configurePrerelease.js
25+
scripts/open-user-pr.js
26+
scripts/open-cherry-pick-pr.js
27+
scripts/processDiagnosticMessages.d.ts
28+
scripts/processDiagnosticMessages.js
29+
scripts/produceLKG.js
30+
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
31+
scripts/generateLocalizedDiagnosticMessages.js
32+
scripts/*.js.map
33+
scripts/typings/
34+
coverage/
35+
internal/
36+
**/.DS_Store
37+
.settings
38+
**/.vs
39+
.idea
40+
yarn.lock
41+
yarn-error.log
42+
.parallelperf.*
43+
.failed-tests
44+
TEST-results.xml
45+
package-lock.json
46+
tests
47+
.vscode
48+
.git

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
root = true
3+
4+
[{src,scripts}/**.{ts,json,js}]
5+
end_of_line = crlf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 4

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.js linguist-language=TypeScript
2+
* -text

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
8+
9+
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!
10+
11+
Please help us by doing the following steps before logging an issue:
12+
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
13+
* Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ
14+
15+
Please fill in the *entire* template below.
16+
-->
17+
18+
<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
19+
**TypeScript Version:** 3.4.0-dev.201xxxxx
20+
21+
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
22+
**Search Terms:**
23+
24+
**Code**
25+
26+
```ts
27+
// A *self-contained* demonstration of the problem follows...
28+
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
29+
```
30+
31+
**Expected behavior:**
32+
33+
**Actual behavior:**
34+
35+
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
36+
37+
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
8+
9+
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.
10+
11+
Please help us by doing the following steps before logging an issue:
12+
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
13+
* Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ
14+
15+
-->
16+
17+
## Search Terms
18+
19+
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->
20+
21+
## Suggestion
22+
23+
<!-- A summary of what you'd like to see added or changed -->
24+
25+
## Use Cases
26+
27+
<!--
28+
What do you want to use this for?
29+
What shortcomings exist with current approaches?
30+
-->
31+
32+
## Examples
33+
34+
<!-- Show how this would be used and what the behavior would be -->
35+
36+
## Checklist
37+
38+
My suggestion meets these guidelines:
39+
40+
* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
41+
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
42+
* [ ] This could be implemented without emitting different JS based on the types of the expressions
43+
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
44+
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
45+

.github/ISSUE_TEMPLATE/Question.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Question
3+
about: The issue tracker is not for questions. Please use Stack Overflow or other resources for help writing TypeScript code.
4+
5+
---
6+
7+
THE ISSUE TRACKER IS NOT FOR QUESTIONS.
8+
9+
DO NOT CREATE A NEW ISSUE TO ASK A QUESTION.
10+
11+
IF YOU ARE HAVING PROBLEMS WITH YOUR TYPESCRIPT CODE, DO NOT ASK A QUESTION HERE.
12+
13+
Tens of thousands of TypeScript questions have been asked and answered on StackOverflow; see https://stackoverflow.com/questions/tagged/typescript . You can ask questions there or on other websites.
14+
15+
The only exception is if you have a question about *the TypeScript compiler API itself*. Please post a complete example of what you're trying to do and precisely describe what your question is.

.github/issue_template.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->
2+
<!--
3+
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.
4+
5+
Please help us by doing the following steps before logging an issue:
6+
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
7+
* Read the CONTRIBUTING guidelines: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
8+
* Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ
9+
-->
10+
11+
<!-- If you have a QUESTION:
12+
THIS IS NOT A FORUM FOR QUESTIONS.
13+
Ask questions at http://stackoverflow.com/questions/tagged/typescript
14+
or https://gitter.im/Microsoft/TypeScript
15+
-->
16+
17+
<!-- If you have a SUGGESTION:
18+
Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.
19+
See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md
20+
-->
21+
22+
<!-- If you have a BUG:
23+
Please fill in the *entire* template below.
24+
-->
25+
26+
<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
27+
**TypeScript Version:** 3.0.0-dev.201xxxxx
28+
29+
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
30+
**Search Terms:**
31+
32+
**Code**
33+
34+
```ts
35+
// A *self-contained* demonstration of the problem follows...
36+
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
37+
```
38+
39+
**Expected behavior:**
40+
41+
**Actual behavior:**
42+
43+
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
44+
45+
**Related Issues:**

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!--
2+
Thank you for submitting a pull request!
3+
4+
Please verify that:
5+
* [ ] There is an associated issue in the `Backlog` milestone (**required**)
6+
* [ ] Code is up-to-date with the `master` branch
7+
* [ ] You've successfully run `gulp runtests` locally
8+
* [ ] There are new or updated unit tests validating the change
9+
10+
Refer to CONTRIBUTING.MD for more details.
11+
https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
12+
-->
13+
14+
Fixes #

.gitignore

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
node_modules/
2+
.node_modules/
3+
built/*
4+
tests/cases/rwc/*
5+
tests/cases/test262/*
6+
tests/cases/perf/*
7+
!tests/cases/webharness/compilerToString.js
8+
test-args.txt
9+
~*.docx
10+
\#*\#
11+
.\#*
12+
tests/baselines/local/*
13+
tests/baselines/local.old/*
14+
tests/services/baselines/local/*
15+
tests/baselines/prototyping/local/*
16+
tests/baselines/rwc/*
17+
tests/baselines/test262/*
18+
tests/baselines/reference/projectOutput/*
19+
tests/baselines/local/projectOutput/*
20+
tests/baselines/reference/testresults.tap
21+
tests/services/baselines/prototyping/local/*
22+
tests/services/browser/typescriptServices.js
23+
src/harness/*.js
24+
src/compiler/diagnosticInformationMap.generated.ts
25+
src/compiler/diagnosticMessages.generated.json
26+
src/parser/diagnosticInformationMap.generated.ts
27+
src/parser/diagnosticMessages.generated.json
28+
rwc-report.html
29+
*.swp
30+
build.json
31+
*.actual
32+
tests/webTestServer.js
33+
tests/webTestServer.js.map
34+
tests/webhost/*.d.ts
35+
tests/webhost/webtsc.js
36+
tests/cases/**/*.js
37+
!tests/cases/docker/*.js/
38+
tests/cases/**/*.js.map
39+
*.config
40+
scripts/debug.bat
41+
scripts/run.bat
42+
scripts/word2md.js
43+
scripts/buildProtocol.js
44+
scripts/ior.js
45+
scripts/authors.js
46+
scripts/configurePrerelease.js
47+
scripts/open-user-pr.js
48+
scripts/open-cherry-pick-pr.js
49+
scripts/processDiagnosticMessages.d.ts
50+
scripts/processDiagnosticMessages.js
51+
scripts/produceLKG.js
52+
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
53+
scripts/generateLocalizedDiagnosticMessages.js
54+
scripts/*.js.map
55+
scripts/typings/
56+
coverage/
57+
internal/
58+
**/.DS_Store
59+
.settings
60+
**/.vs
61+
**/.vscode
62+
!**/.vscode/tasks.json
63+
!tests/cases/projects/projectOption/**/node_modules
64+
!tests/cases/projects/NodeModulesSearch/**/*
65+
!tests/baselines/reference/project/nodeModules*/**/*
66+
.idea
67+
yarn.lock
68+
yarn-error.log
69+
.parallelperf.*
70+
tests/cases/user/*/package-lock.json
71+
tests/cases/user/*/node_modules/
72+
tests/cases/user/*/**/*.js
73+
tests/cases/user/*/**/*.js.map
74+
tests/cases/user/*/**/*.d.ts
75+
!tests/cases/user/zone.js/
76+
!tests/cases/user/bignumber.js/
77+
!tests/cases/user/discord.js/
78+
tests/baselines/reference/dt
79+
.failed-tests
80+
TEST-results.xml
81+
package-lock.json

.gitmodules

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[submodule "tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter"]
2+
path = tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
3+
url = https://github.com/Microsoft/TypeScript-React-Starter
4+
ignore = all
5+
[submodule "tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter"]
6+
path = tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
7+
url = https://github.com/Microsoft/TypeScript-Node-Starter.git
8+
ignore = all
9+
[submodule "tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter"]
10+
path = tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
11+
url = https://github.com/Microsoft/TypeScript-React-Native-Starter.git
12+
ignore = all
13+
[submodule "tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter"]
14+
path = tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter
15+
url = https://github.com/Microsoft/TypeScript-Vue-Starter.git
16+
ignore = all
17+
[submodule "tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter"]
18+
path = tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter
19+
url = https://github.com/Microsoft/TypeScript-WeChat-Starter.git
20+
ignore = all
21+
[submodule "tests/cases/user/create-react-app/create-react-app"]
22+
path = tests/cases/user/create-react-app/create-react-app
23+
url = https://github.com/facebook/create-react-app.git
24+
ignore = all
25+
[submodule "tests/cases/user/webpack/webpack"]
26+
path = tests/cases/user/webpack/webpack
27+
url = https://github.com/webpack/webpack.git
28+
ignore = all
29+
[submodule "tests/cases/user/puppeteer/puppeteer"]
30+
path = tests/cases/user/puppeteer/puppeteer
31+
url = https://github.com/GoogleChrome/puppeteer.git
32+
ignore = all
33+
[submodule "tests/cases/user/axios-src/axios-src"]
34+
path = tests/cases/user/axios-src/axios-src
35+
url = https://github.com/axios/axios.git
36+
ignore = all
37+
[submodule "tests/cases/user/prettier/prettier"]
38+
path = tests/cases/user/prettier/prettier
39+
url = https://github.com/prettier/prettier.git
40+
ignore = all

0 commit comments

Comments
 (0)