servicebus icon indicating copy to clipboard operation
servicebus copied to clipboard

ServiceBus typedef for Typescript

Open eddieajau opened this issue 7 years ago • 9 comments

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?

eddieajau avatar Sep 13 '16 06:09 eddieajau

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.

mateodelnorte avatar Sep 13 '16 23:09 mateodelnorte

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.

eddieajau avatar Sep 14 '16 00:09 eddieajau

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?

mateodelnorte avatar Sep 14 '16 02:09 mateodelnorte

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.

eddieajau avatar Sep 14 '16 23:09 eddieajau

Type defs can now be installed via npm, how about a @types/servicebus package?

drew-r avatar Oct 13 '16 12:10 drew-r

I'm all for whatever is easiest and most obvious to users.

mateodelnorte avatar Oct 17 '16 17:10 mateodelnorte

Any news regarding the @types/servicebus?

obiwan007 avatar Dec 21 '17 15:12 obiwan007

What's the question?

mateodelnorte avatar Dec 21 '17 18:12 mateodelnorte

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

obiwan007 avatar Dec 22 '17 08:12 obiwan007