Skip to content

Bug with IssueBean typings #124

Closed
@MrRefactoring

Description

@MrRefactoring

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates a reported issue or malfunction that needs fixing.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions