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

Extended TS support #46

Open
m10rten opened this issue Sep 9, 2022 · 1 comment
Open

Extended TS support #46

m10rten opened this issue Sep 9, 2022 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@m10rten
Copy link
Owner

m10rten commented Sep 9, 2022

Is your feature request related to a problem? Please describe.

  • A clear and concise description of what the problem is.

The typescript compiler does not compute with the checks, so need to return valid return values other then boolean.

Input

  • What parameters will be passed in or required?
  • And what is the prefered type of input?

None
Output

  • What will be the expected output?
  • And what type does it have?

Variable is {} for example
Additional context

  • Add any other context or code-examples about the feature request here.
@m10rten m10rten added the enhancement New feature or request label Sep 9, 2022
@m10rten
Copy link
Owner Author

m10rten commented Sep 9, 2022

for the types such as nullish, falsy, string, boolean and date, this is doable.
But for anuthing other than this: truthy, or extended or custom user input where there are checks inside, it is very hard to get the typescript to work, so just boolean on these.

@m10rten m10rten added the question Further information is requested label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant