-
Notifications
You must be signed in to change notification settings - Fork 56
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
adding type definitions. #348
base: master
Are you sure you want to change the base?
Conversation
…method registerSaslHandler
I would love this to be merged, as the "typings" client was deprecated in favour of @types npm packages, we no longer have a mechanism to automatically update typedefs. Merging this PR would help greatly. I would only exclude/revert the following files:
If a (second) maintainer for this feature is required, then I would be glad to help out. |
I would love to see types! But should we maybe create a PR over at https://github.com/DefinitelyTyped/DefinitelyTyped ? That's the official / most used repo to store types |
no, it's recommended that libs carry their own typings with them, so they are kept up-to-date with the lib's functionality. DefinitelyTyped is for community contributions for packages they don't own. |
@ps2goat do you have a source on that? Because I only heard / read that it should be published to DefinitelyTyped... |
Reviewed 28 of 32 files at r1, 9 of 9 files at r2. typings/lib/policies/policy.d.ts, line 36 at r2 (raw file):
This is where I had to pass in sasl configuration, but I don't see a property added in later commits. Would this be a good place for typings/lib/policies/service_bus_policy.d.ts, line 4 at r2 (raw file):
It's nice to give credit, but since this will evolve, and is in every file, should the credits be moved to the readme file? Somewhere visible and in a single place. Comments from Reviewable |
@BorntraegerMarc - that comment got lost in the reviewable.io publish lol. I guess that this lib isn't written in TypeScript, so technically it could go on DT. But they call it out on the readme: https://github.com/DefinitelyTyped/DefinitelyTyped
|
This change is