Skip to content
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

Return types do not indicate nullability #616

Open
winstliu opened this issue Nov 12, 2024 · 1 comment
Open

Return types do not indicate nullability #616

winstliu opened this issue Nov 12, 2024 · 1 comment

Comments

@winstliu
Copy link
Member

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[]>.

@aleksandrlevochkin
Copy link
Contributor

Hi @winstliu thank you for reporting this issue. We are currently working on higher-prioritized issues, but we'll return to this one as soon as we can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants