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

Add missing nulls in the type declaration #45

Merged
merged 2 commits into from
Aug 29, 2021
Merged

Add missing nulls in the type declaration #45

merged 2 commits into from
Aug 29, 2021

Conversation

ouuan
Copy link
Contributor

@ouuan ouuan commented Aug 27, 2021

Some methods can return null, so some type declarations were incorrect.

@ouuan
Copy link
Contributor Author

ouuan commented Aug 27, 2021

@ouuan
Copy link
Contributor Author

ouuan commented Aug 27, 2021

I'm not very familiar with type declaration files, so I don't know why, but tsserver also says that min() doesn't return null.

@ouuan
Copy link
Contributor Author

ouuan commented Aug 27, 2021

Oh, I know, there's no tsconfig.json and strictNullChecks is not enabled.

@ouuan
Copy link
Contributor Author

ouuan commented Aug 27, 2021

However, I think tests/types.ts is somehow useless 🤔 What does it do? The types are literally equal to the ones defined in index.d.ts.

@ouuan ouuan marked this pull request as ready for review August 27, 2021 14:46
@ouuan
Copy link
Contributor Author

ouuan commented Aug 28, 2021

Can you merge this?

@w8r w8r merged commit 0f8f0ae into w8r:master Aug 29, 2021
@ouuan ouuan deleted the null branch August 30, 2021 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants