nulab / backlog-js

Backlog API version 2 client for browser and node.
https://developer.nulab-inc.com/docs/backlog/
33 stars 13 forks source link

type declaration of Entity.Issue.Issue has issues #79

Closed tockri closed 1 year ago

tockri commented 1 year ago

Hi, thank you for great library! I found subtle issues on Issue declaration. https://github.com/nulab/backlog-js/blob/master/src/entity.ts#L233

  export interface Issue {
    id: number;
     :
    keyId: 1;    // <---- should be number
     :
    resolution: Resolution; // <----- should be Resolution | undefined
     :
    assignee: User.User; // <------ should be User.User | undefined
     :
  }

Please consider fixing 🙏

mmktomato commented 1 year ago

@tockri Thank you for the report! I fixed it and released 0.13.1.