-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
feat: added better typing for the Optional
class and helper.
#1344
Conversation
ecaad4a
to
d7d5296
Compare
d7d5296
to
f29c726
Compare
Can you rebase it on top of master branch instead of a merge commit? Thanks! |
c06298e
to
c098743
Compare
Optional
class and helper.
Thank you! |
Hi @mad-briller This change caused some errors in my testing. For example now Could you take a look at that? Thanks. |
i guess in the past this wasn't raised because of the explicit it may take a bit of work for me to do that and i'm not sure when i can get to it, my idea would be to make |
Sure no problem. I also like the generics idea. I might look into that tonight! |
oh sweet, i'll keep my eye out, thanks if we do make Optional generic, the |
@mad-briller On a second though I decided not to go generics way. There is no reason to complicate things. Since |
Changes
Added a conditional return type to the optional() method along with template typing.
Made the Optional class a
universalObjectCrateClass
as it will return a value for all property names.