Skip to content

Return types do not indicate nullability #616

Open
@winstliu

Description

@winstliu

Many methods can return null, but the API surface does not reflect this.

For example, GitApi.getRepositories(project) returns null if the project doesn't exist, but the return type is misleadingly listed as Promise<GitRepository[]>.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions