Comments (14)
It's on the TODO — while the core will remain StandardJS, we'll provide types for everything.
Will update this ticket when it's covered. Thank you!
from fastify-vite.
@jfsiii I'd very much welcome help from TypeScript experts willing to stitch up these missing bits. I'm focused on other areas of as I'm already dog-fooding it, but don't really use TypeScript in my own projects.
from fastify-vite.
@galvez would you accept a PR that converts this entire repo to native TypeScript (without any logical changes)?
from fastify-vite.
I am pretty willing to make such a PR, but I want to get an affirmative "go-ahead" from whoever would actually review/approve it before I start. I've been burned before with spending time converting a codebase to TypeScript just to later find that it's not a welcome change, so I always like to ask first.
from fastify-vite.
@galvez, hi! hope this issue is active!
from fastify-vite.
We already have some stuff in dev
waiting for a release, lots of new types etc.
Both @fastify/vue
and @fastify/react
will have TypeScript versions of its virtual packages in the next minor release.
I should find some time to prep over the week!
from fastify-vite.
Is there any update on this? Both Fastify and Vite publish types, so I'd love to have them here as well.
Can we start with something now and improve it or are there other milestones before it can begin? I might be able to help out depending on what you need (if anything).
from fastify-vite.
You can eject all of them, refactor into TypeScript and then just make sure index.html
and index.js
are loading the TypeScript versions. This will be available out of the box in the next minor release, just want to make sure I have worked out all the kinks. If you do that and want to contribute your working setup as part of packages/fastify-react/virtual
, that would speed up the process!
from fastify-vite.
Any update?
@dimitropoulos please can you start a PR?
from fastify-vite.
Ok
FYI @galvez
from fastify-vite.
Not sure if this is the right thread, but I saw #118 incorporated into the v5 release, but the types don't get bundled as the package json
still excludes them. Was this an oversight or intentional?
Edit: I just noticed that this also includes the new utils export.
from fastify-vite.
Virtual modules aren't supposed to work in TS projects right?
from fastify-vite.
Any update / timeline on typescript support? @galvez looks like v6.0 will have typescript support for Jan 2024. Is that still on track? Thank you for all that you do.
from fastify-vite.
We already have some stuff in
dev
waiting for a release, lots of new types etc.Both
@fastify/vue
and@fastify/react
will have TypeScript versions of its virtual packages in the next minor release.I should find some time to prep over the week!
Sounds good! I will take a look.
from fastify-vite.
Related Issues (20)
- Files in /public folder are not served in production mode HOT 4
- Error on Windows: TypeError: Cannot read properties of null (reading 'replace')
- Websocket can not connect when using https fastify
- If vites config contains `defineConfig` with callback, then SSR is broken HOT 3
- How to configure multi-page entry
- Issues running with fastify-compress HOT 4
- Serve static assets from ssr builds in production mode HOT 2
- TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string
- Trace: The CJS build of Vite's Node API is deprecated
- Conflicting websockets between vite and `@fastify/websocket` causing infinite redirects HOT 1
- [react][windows] React Starter Template does not start on Windows HOT 4
- How to use Vue plugins like instance.use(...) HOT 4
- NPM install fails with 'edgesout' error HOT 3
- [SPA] allowing passing additional context to the render function HOT 3
- mts file extension is not supported for vite.config HOT 3
- @fastify/vue Smart Import doesn't resolve path in windows HOT 5
- SPA mode results in `Cannot read properties of null`
- SPA Documentation / Examples HOT 5
- Move `fastify` and `vite` to peer dependencies
- Missing `fastify-plugin` dependency
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 fastify-vite.