-
-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types #25
Comments
I explored a route with using dts-gen but it is not that great maybe using |
i'm not super familiar with generating or providing types. any tips or pr? |
How do you want it emitted? As commonjs, or es2015 modules? Also, not sure what benefit you're looking for out of using babel over just tsc as you aren't using the pipeline operator anywhere that you have tagged in the babel plugins. |
Basically, if you remove the |
I would second this
If we come to the conclusion we want to do it with |
There are also a number of other adjustments I would make to the repo, like moving |
@dyst5422 -- Tests are already ignored for publishing (modulo a small oversight with one file that I've just put up #28 to fix). Take a look at https://unpkg.com/urql/ to see what we actually publish (and |
Also, for anyone discussion CJS vs. ESM, our publishing approach is both. See, e.g.: Hope that helps! |
I'm reluctant to publish the actual .ts source, but as far as definitions, should I be publishing to @types, or running tsc and pointing at that from package.json? cc @danielrossenwasser |
I can't seem to get type hinting working. I think it's because theyre hidden under a types/ subfolder and not next to the .js or in a @types package. Would you consider moving them to @types/urql? |
Hey, can we publish typescript types for this package?
I saw it is written in Typescript, so this should be easy. Using it in a Typescript code base not having types is a bummer.
Maybe we can just publish the raw
.ts
files but am not to confident about this option.The text was updated successfully, but these errors were encountered: