floralvikings / jira-connector

NodeJS Wrapper for the Jira REST API
http://floralvikings.github.io/jira-connector/
MIT License
373 stars 180 forks source link

Define JiraBoard interface & return of getBoard #201

Closed G-Rath closed 4 years ago

G-Rath commented 4 years ago

I'm exploring using the JIRA api for things, and I'd like to do so w/ TypeScript, so I'm going to incrementally expand the typings as I go if that's ok 😄

This is the first nice thing I've confirmed - even if it's incorrect, it can be improved via PR 🙂

G-Rath commented 4 years ago

@floralvikings I've written a small script for copying issues from one board to another in TypeScript using jira-connector, and it's working quite nicely.

b/c of the lack of types, I've written a lot of types myself for using this library, which I'm happy to contribute back if you are interested.

While I enjoy writing type definitions, it's far less fun if they're just going to sit in a PR & never merged, so I'd prefer to get some confirmation of interest before I proceed to backfill all the types 🙂

MrRefactoring commented 4 years ago

@G-Rath thanks for the contribution! We will add these changes to NPM in the next release!

G-Rath commented 4 years ago

@MrRefactoring awesome, cheers! There's a lot more where that came from if you're interested 😉