[Parcel 2] Typescript Definitions
See original GitHub issue🙋 feature request
Type definitions for this package, whether they’d be included in the package or in @types/parcel.
🤔 Expected Behavior
Import types from @types/parcel
:
import Parcel from 'parcel'
😯 Current Behavior
Import has squiggly lines of death explaining that there are no types.
@types/parcel
exists:
import Parcel from 'parcel'
@types/parcel-bundler
exists:
import Parcel from 'parcel-bundler'
💁 Possible Solution
Generate types using flow-to-typescript
package. Unsure on any restrictions in the project.
🔦 Context
I want to test out this package, but will be using typescript strictly. I’m using the bundler API to prerender static HTML pages for a react application.
💻 Examples
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:15 (10 by maintainers)
Top Results From Across the Web
TypeScript - Parcel
TypeScript is a typed superset of JavaScript that compiles to JavaScript. Parcel supports TypeScript out of the box without any additional configuration.
Read more >Migration - Parcel
In Parcel 1, importing any non-JavaScript file such as an image or video resulted in a URL. In Parcel 2, this still works...
Read more >Announcing Parcel v2!
Parcel can build multiple targets at once, for example a library with an ES module, CommonJS, and TypeScript definitions, a modern and legacy ......
Read more >Parcel 2 RC
The Parcel team is very excited to announce the first Parcel 2 ... Finally, we now publish TypeScript definitions along with all of...
Read more >Parcel
Parcel automatically transforms your code for your target environments. From modern and legacy browser support, to zero config JSX and TypeScript compilation, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@devongovett I wouldn’t consider the issue closed, as the definitions are in flow and not typescript.
Personally, I’d like these auto translated into TS types. What is the current game plan for converting these to typescript definitions? I would like to help.
We should officially maintain these in the Parcel repo IMO.