Comments (2)
Without using a type checker, one can not collapse the
Promise<Promise<T>>
intoPromise<T>
.
Can't you though? It's impossible to observe nested promises at runtime, so it's always safe to collapse them.
from typescript.
This is related to #58334. Neither async or generator functions should allow inferred types in isolated declaration
from typescript.
Related Issues (20)
- Annotated parameters are not used for inferring rest parameters HOT 2
- [ts-5.5-rc] Import elided in spite of being use in declarations
- Delete or Change Unavailable YouTube Video in /why-create-typescript
- [ts-5.5]Some types are excessively expanded in keyof and index access types
- `for (const x in #b)` is allowed HOT 1
- Can't augment function overload is function is exported via `export {}` HOT 3
- Design Meeting Notes, 5/31/2024 HOT 3
- `lib.d.ts` Updates for TypeScript 5.6 HOT 2
- Conditional type does not work when generic HOT 2
- Assignment fails with boolean return type and recursive type HOT 2
- [ServerErrors][TypeScript] 5.5.0-dev.20240603 HOT 17
- Inline JSX.Element import for component returning null conditionally HOT 3
- Duplicate exports.* = assignments in CommonJS output in some cases
- [Wiki] Breaking changes. TypeScript 3.9. Exports Now Use Getters for Live Bindings. HOT 2
- [NewErrors] 5.6.0-dev.20240604 vs 5.4.5 HOT 69
- Type Inference in Array callback is confusing HOT 2
- Autocomplete is not reliable with subpath exports HOT 3
- VS Code TS plugin Quick Fix Expansion Incorrect HOT 1
- Cannot `infer` the return type of a generic function in a conditional type HOT 2
- Types of parameters 'property' and 'property' are incompatible. Type 'string | number | symbol' is not assignable to type 'keyof NamingDetail'. HOT 2
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.