Comments (2)
what's the difference between checking if it resolves and checking that it's valid? If TypeScript already checks whether a given specifier resolves, I would expect that to mean it errors if the corresponding file doesn't exist.
Checking to see if it resolve is what the new flag would do. Today, you can write:
import "hello-world-this-is-fake";
And it won't error at all. If it does exist, we technically will resolve it, sort of, to pull its referenced files in, but we won't resolve it enough to actually issue an error or anything. So it's down to "semantics" on what the name should be.
from typescript.
checkSideEffectImportSpecifiers
-Specifiers
because we already check if it resolves, but we don't check that the specifier is valid.
I'm struggling to parse this - what's the difference between checking if it resolves and checking that it's valid? If TypeScript already checks whether a given specifier resolves, I would expect that to mean it errors if the corresponding file doesn't exist.
from typescript.
Related Issues (20)
- Taking TypeScript for a spin for first time, errors for resizable ArrayBuffer HOT 7
- Shallow copy of Map class produce incorrect typings HOT 1
- Passing spreading array to function parameters should raise an error HOT 2
- `import defer` Stage 2.7 proposal support
- Types with optional props get implicit index signatures that cannot be made explicit HOT 1
- Presence of `export` affects narrowing HOT 3
- Mixin types are intersections rather than proper subclasses
- Duplicate keys do not error HOT 7
- JsDoc is missing/duplicated in declarations for overloads declared in classes declared in functions
- Allow excess properties in assignment if they were used in a `satisfies` check HOT 3
- Interface merging behaves inconsistently with respect to exports HOT 3
- Hovering @param comments duplicates the comment in the hover HOT 3
- `'X' only refers to a type` error in JSDoc comments HOT 1
- Design Meeting Notes, 7/23/2024
- verbatimModuleSyntax does not respect "exclude" option in tsconfig HOT 2
- Nonsensical error when creating a mixin with a type parameter HOT 1
- Web TS Server tries watching for files outside of project root HOT 1
- No completions for type parameters in generic function return type HOT 1
- Code generated by Webpack shows error in `exports` parameters in module lambdas as if they were a conflicting global `exports`
- Debug Failure. Expected 55 <= 54
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.