servicebus
servicebus copied to clipboard
ServiceBus typedef for Typescript
Hi Matt. I've published a typedef for the ServiceBus here it's still pretty rough and I need to add more DocBlocks, but is this something you are interested in linking to?
I'm not against it. How will these be used, in conjunction with servicebus?
As an aside, I'd prefer the package name was changed from mumba-typedef-servicebus
to servicebus-typedef
, as that sounds a bit more straightforward and seems to connote it's a package for typedefs pertaining to servicebus.
How will these be used, in conjunction with servicebus?
It's only used if you are including servicebus is a Typescript project.
Regarding package name, that's our standard naming convention for anything I produce at work and if you did do a link-out, I'd qualify that it's third-party supported. However, I'd be more than happy to relocate and maintain it under something like mateodelnorte/servicebus-typedef which gives you full control over the naming convention :) I'm happy either way.
Other than
$ npm install --save mumba-typedef-servicebus
$ typings install servicebus=npm:mumba-typedef-servicebus --save --global
What needs to be done to use the projects together?
That's it. You can then just use an import like:
import {Bus} from 'servicebus';
and Typescript can do all it's compile-time checks and balances.
Type defs can now be installed via npm, how about a @types/servicebus
package?
I'm all for whatever is easiest and most obvious to users.
Any news regarding the @types/servicebus?
What's the question?
Sorry about the @types package. Another option would be to just put the d.ts file into the default package. Makes it easier to keep it in sync...