Skip to content

Bug with IssueBean typings #124

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

Closed
MrRefactoring opened this issue May 11, 2021 · 0 comments · Fixed by #125
Closed

Bug with IssueBean typings #124

MrRefactoring opened this issue May 11, 2021 · 0 comments · Fixed by #125
Labels
bug Indicates a reported issue or malfunction that needs fixing.

Comments

@MrRefactoring
Copy link
Owner

Hi, I am reading the status from an issue:

static getStatus = (i: IssueBean): string => {
    return (i as any).fields.status.name;
}

If I cast the issue to "any" it work, otherwise I get a compile error because "fields" doesn't have a type definition. Is there a better way to handle this? Do I need to install the types for the library?

Thanks, really appreciate your work!

Originally posted by @manupiastra in #123

@MrRefactoring MrRefactoring added the bug Indicates a reported issue or malfunction that needs fixing. label May 11, 2021
MrRefactoring added a commit that referenced this issue May 11, 2021
MrRefactoring added a commit that referenced this issue May 11, 2021
* #124 bug with fields model fixed

* small test improvement

* small test improvement
@MrRefactoring MrRefactoring linked a pull request May 11, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates a reported issue or malfunction that needs fixing.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant