Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ For more information, [see this pull request](https://github.com/microsoft/TypeS

TypeScript itself ships two library files: `tsserverlibrary.js` and `typescript.js`.
There are certain APIs available only in `tsserverlibrary.js` (like the `ProjectService` API), which may be useful to some importers.
Still, the two are distinct bundles with have a lot of overlap, duplicating code in the package.
Still, the two are distinct bundles with a lot of overlap, duplicating code in the package.
What's more, it can be challenging to consistently use one over the other due to auto-imports or muscle memory.
Accidentally loading both modules is far too easy, and code may not work properly on a different instance of the API.
Even if it does work, loading a second bundle increases resource usage.
Expand Down Expand Up @@ -421,4 +421,4 @@ For more information, [see the DOM updates for TypeScript 5.3](https://github.co
TypeScript 5.3 now detects when the declaration referenced by a `super.` property access is a class field and issues an error.
This prevents errors that might occur at runtime.

[See more on this change here](https://github.com/microsoft/TypeScript/pull/54056).
[See more on this change here](https://github.com/microsoft/TypeScript/pull/54056).