-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix Maybe
only refers to a type, but is being used as a value here
#4181
fix Maybe
only refers to a type, but is being used as a value here
#4181
Conversation
…for array return type
@dotansimha |
2aa2243
to
4a5af11
Compare
Thank you @leejh3224 ! Regarding this PR, I think maybe you can use |
Great! I’ll check that out! |
|
Perfect, we can get this merged. Thank you @leejh3224 ! |
The latest changes of this PR are available as alpha in npm: Quickly update your package.json by running:
|
A use ver. 1.17.8 but still getting this problem
|
@OLDIN Could you please create a new issue with a minimal reproduction using our CodeSandbox template? |
Fix the issue related to the comment below.
comment
Thanks @borremosch @dotansimha!
Though if you have something like this (tested with 1.8.2-alpha-6ee6e064.78 ):
Will result in:
So ts will say: 'Maybe' only refers to a type, but is being used as a value here.
Originally posted by @groege in #2177 (comment)