CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 20:54:42 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"132e08fd610ab6bde8b558fe1d8569c7"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=dutYVzTuwMo6cRLPgNUdWrALB%2FbCGlg%2Bqe9CB%2BrRubKLK6UaxGsjUlvGZifcZ8utYiusYTsawfuW%2FGpjNeI9QqUIDdALJqMoVHo8XD5wMoRLSihw%2Bx3RUA0t0CUrE4aL%2Fq7Ju%2Fu4ZQRbdGzCQX6jIRi1Aoo8sjg%2FYYrW4FOGA6umWNyGkrEsBURspxZ6dBKES8eypinSey1qKArioFZqNDapHcFXmKLDSCdN%2FCa2u2M3F1MF7jIcIIwgAZxBcDTisDe2TpOQ5NZZQr61tbLRZg%3D%3D--g1A2FRWdS0xk4aMr--IXj96dJEPaJHWoe%2FS8uNmg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2012127840.1752872080; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:54:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:54:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9ED6:115935:173C41:1E2DF0:687AB490
Quick fix for no-implicit-any errors to add explicit type annotation … · microsoft/TypeScript@4487917 · GitHub
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/services/codefixes/fixes.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 4487917
authored
Quick fix for no-implicit-any errors to add explicit type annotation (#14786)
* Infer from usage quick fix
* Change full function singature
* Add property/element access support
* Fix a few issues
* Some cleanup
* Expose getArrayType and getPromiseType
* Switch to collecting all usage before infering
* Infer array and promise type arguments
* Handel enums in binary operators
* consolidate usage of addCandidateTypes
* Handel rest paramters
* Properly handel `+=` and `+` inference for numbers and strings
* Add print quickfixes debug helper
* Add rest param tests
* Add optional paramter tests
* Handel set accessors
* Support getters
* Support no implicit any error for variable at use site
* Support properties
* Only offer quick fix if an infered type other than any is available
* Rename functions
* Move to a separate namespace
* Check cancellation token
* Cleanup
* Check for accesibile symbols where serializing types
* Remove JS support
* Reorganize functions
* Mark APIs as internal
* Fix lint errors
* Removed conflict markers.
* Update 'createSymbol' to use '__String'.
* Fixed most problems relating to '__String' and 'includeJsDocComments' in the fix itself.
* Addressed most API changes.
* Make all helpers internal
* Use a diffrent writer and not the built-in single line write
* Infer types for all parameters in a parameter list instead of one at a time
* Accept baselines
* Code review commments
* Respond to code review comments1 parent b5e6b89 commit 4487917Copy full SHA for 4487917
File tree
Expand file treeCollapse file tree
26 files changed
+893
-9
lines changedFilter options
- src
- compiler
- services/codefixes
- tests
- baselines/reference/api
- cases/fourslash
Expand file treeCollapse file tree
26 files changed
+893
-9
lines changed+18Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
229 | 246 |
| |
230 | 247 |
| |
231 | 248 |
| |
| |||
3675 | 3692 |
| |
3676 | 3693 |
| |
3677 | 3694 |
| |
| 3695 | + | |
3678 | 3696 |
| |
3679 | 3697 |
| |
3680 | 3698 |
| |
|
+4-2Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
216 |
| - | |
| 216 | + | |
| 217 | + | |
217 | 218 |
| |
218 | 219 |
| |
219 |
| - | |
| 220 | + | |
220 | 221 |
| |
| 222 | + | |
221 | 223 |
| |
222 | 224 |
| |
223 | 225 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+9-7Lines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3681 | 3681 |
| |
3682 | 3682 |
| |
3683 | 3683 |
| |
| 3684 | + | |
3684 | 3685 |
| |
3685 | 3686 |
| |
3686 | 3687 |
| |
| |||
3725 | 3726 |
| |
3726 | 3727 |
| |
3727 | 3728 |
| |
3728 |
| - | |
3729 | 3729 |
| |
3730 | 3730 |
| |
3731 | 3731 |
| |
| |||
3734 | 3734 |
| |
3735 | 3735 |
| |
3736 | 3736 |
| |
3737 |
| - | |
3738 | 3737 |
| |
3739 | 3738 |
| |
3740 | 3739 |
| |
3741 | 3740 |
| |
3742 |
| - | |
3743 | 3741 |
| |
3744 | 3742 |
| |
3745 | 3743 |
| |
3746 | 3744 |
| |
3747 |
| - | |
3748 | 3745 |
| |
3749 | 3746 |
| |
3750 | 3747 |
| |
3751 | 3748 |
| |
3752 |
| - | |
3753 | 3749 |
| |
3754 | 3750 |
| |
3755 | 3751 |
| |
3756 | 3752 |
| |
3757 |
| - | |
3758 | 3753 |
| |
3759 | 3754 |
| |
3760 | 3755 |
| |
3761 | 3756 |
| |
3762 |
| - | |
3763 | 3757 |
| |
3764 | 3758 |
| |
3765 | 3759 |
| |
| 3760 | + | |
| 3761 | + | |
| 3762 | + | |
| 3763 | + | |
| 3764 | + | |
| 3765 | + | |
| 3766 | + | |
| 3767 | + | |
3766 | 3768 |
| |
3767 | 3769 |
|
+18Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2695 | 2695 |
| |
2696 | 2696 |
| |
2697 | 2697 |
| |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
2698 | 2716 |
| |
2699 | 2717 |
| |
2700 | 2718 |
| |
|
+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5649 | 5649 |
| |
5650 | 5650 |
| |
5651 | 5651 |
| |
| 5652 | + | |
| 5653 | + | |
| 5654 | + | |
| 5655 | + | |
| 5656 | + | |
| 5657 | + | |
| 5658 | + | |
| 5659 | + | |
5652 | 5660 |
| |
5653 | 5661 |
| |
5654 | 5662 |
| |
|
src/services/codefixes/fixes.ts
Copy file name to clipboardExpand all lines: src/services/codefixes/fixes.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + |
You can’t perform that action at this time.
0 commit comments