Comments (3)
- This changed between versions 5.4.5 and 5.5.3_____
I don't see any difference in behaviour between these versions.
This is, unfortunately, working as intended. In the browser context you have a global name
variable. See also #18433.
from typescript.
Thank you for your response to this question. I didn't quite understand why name is a constant before, but now I have a better understanding of this issue.
from typescript.
This issue has been marked as "Working as Intended" and has seen no recent activity. It has been automatically closed for house-keeping purposes.
from typescript.
Related Issues (20)
- Object.keys doesn't return correct type HOT 2
- Unions of assertion functions do not act as assertion functions HOT 3
- wrong behavior about type parameters of `as` clause in a mapped type HOT 2
- Type is not referred correctly in the while loop HOT 4
- Interface type coercion fails with unsatisfied properties in unions HOT 1
- Generic type narrowing for truthy check has inconsistent / incorrect behavior HOT 1
- `rootDirs` is not working as expected. HOT 9
- Function inference is incorrect with inline const objects HOT 1
- No typechecking error in code that uses an uninitialized variable due to circular reference HOT 1
- Readonly shorthand cast for expression where `as const` is forbidden
- Optimal TS monorepos: how to handle project references when projects opt out of composite within dependency chain HOT 2
- Auto accessor field types cannot be inferred from constructor
- The order of values ββin a union affects the correct type inference HOT 1
- Inlay variance hints
- false ? ... behavior is weird. HOT 1
- Google feedback on TS 5.6-beta HOT 3
- TypeScript auto-import does not suggest tsconfig paths containing `${configDir}`
- Two mapped types on same type can't be both indexed by the same key HOT 3
- `instantiateMappedTupleType` should not use array index as mapping key, at least it's not in an appropriate way
- Boolean narrowed to true only when generic type is explicitly provided while it shouldn't
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript.