-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ban Object Values null
| undefined
| unknown
#3
Comments
codyduong
changed the title
Banned Object Key Values
Ban Object Values Mar 20, 2022
null
| undefined
| unknown
| never
codyduong
changed the title
Ban Object Values
Ban Object Values Mar 20, 2022
null
| undefined
| unknown
| never
null
| undefined
| unknown
| never
| any
codyduong
changed the title
Ban Object Values
Ban Object Values Mar 20, 2022
null
| undefined
| unknown
| never
| any
null
| undefined
| unknown
| any
Due to the way I wrote the inference engine, This may be something I never fix, seeing as most users should know the return of their API data. If they don't, they should instead opt to type something as |
codyduong
changed the title
Ban Object Values
Ban Object Values Mar 20, 2022
null
| undefined
| unknown
| any
null
| undefined
| unknown
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I should add docs for banned object key values. This utility is used to parse through known results. As such there should be no point where the object provided returns a null | undefined | unknown | never in a key/value pair. These types all break the inference engine I made.
That or I change the inference engine to work on these. The only problem being is we often use these values as internal delimiters to decide when to stop deeply recursing through the object, soo...
Really, if the user of this library does not know the type, they should instead use any
The text was updated successfully, but these errors were encountered: