-
Notifications
You must be signed in to change notification settings - Fork 119
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
FYI: existing type definitions #107
Comments
very cool! this is really similar to the we could certainly link out and promote your additional typings, but my first instinct is that it'd be good to combine forces. would you be interested in that? |
Yeah, that sounds good. Seems like it would be best to just copy the types I made into your project rather than linking out to the |
@JeffJacobson this is awesome - I'm starting to recreate some of these - and I don't want to. No matter what we decide, I think the main thing is to eliminate any duplication of error. I'll be the first to admit that I'm mystified by TS best practices, I thought DefinitelyTyped was out, and -->Mind blown<-- Also, we've prefixing all interfaces w/ My only concerns w/ using DefinitelyTyped are how difficult is it to keep the types there up to date and how do update the types as you develop? Who merges PRs to DefinitelyTyped? I presume each of the libraries in this monorepo would add |
OK, wish I had done a quick google search on this before my previous comment. Turns out, If your package is written in TypeScript then you should publish the types w/ your package, so I'm going to PR @JeffJacobson's types to arcgis-rest-common-types - at the very least the ones I'll need for the new package for managing features. Also I talked IRL w/ @jgravois and he prefer's the @JeffJacobson if we were to include all of your types (not just the ones we need), would that be something you'd be willing to use in your projects instead of |
Sounds good. |
closing as this was resolved in #121 - thanks again @JeffJacobson! |
A while ago I contributed the @types/arcgis-rest-api type definitions to the DefinitelyTyped repository. If they meet your needs you could use these instead of creating them from scratch. (Available via NPM here)
I have another version with additional types, but that hasn't been contributed yet. I've attached that version below, in case you want to use it.
arcgis-rest-api.d.ts.zip
(The only reason that all of the types are in a single
index.d.ts
file is simply because that's the way the DefinitelyTyped project expects them to be.)The text was updated successfully, but these errors were encountered: