Giter Site home page Giter Site logo

TypeScript support about fastify-vite HOT 14 OPEN

fastify avatar fastify commented on April 30, 2024 16
TypeScript support

from fastify-vite.

Comments (14)

galvez avatar galvez commented on April 30, 2024 6

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.

galvez avatar galvez commented on April 30, 2024 5

@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.

dimitropoulos avatar dimitropoulos commented on April 30, 2024 5

@galvez would you accept a PR that converts this entire repo to native TypeScript (without any logical changes)?

from fastify-vite.

dimitropoulos avatar dimitropoulos commented on April 30, 2024 5

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.

calebeaires avatar calebeaires commented on April 30, 2024 4

@galvez, hi! hope this issue is active!

from fastify-vite.

galvez avatar galvez commented on April 30, 2024 2

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.

jfsiii avatar jfsiii commented on April 30, 2024 1

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.

galvez avatar galvez commented on April 30, 2024 1

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.

rtritto avatar rtritto commented on April 30, 2024

Any update?

@dimitropoulos please can you start a PR?

from fastify-vite.

rtritto avatar rtritto commented on April 30, 2024

Ok

FYI @galvez

from fastify-vite.

spaceemotion avatar spaceemotion commented on April 30, 2024

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.

paynecodes avatar paynecodes commented on April 30, 2024

Virtual modules aren't supposed to work in TS projects right?

from fastify-vite.

tvarwig avatar tvarwig commented on April 30, 2024

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.

tvarwig avatar tvarwig commented on April 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.