Skip to content

Conversation

cdeutsch
Copy link
Contributor

We need to return different versions of ParsedQuery based on the values of parseBooleans and parseNumbers.

Not sure about the naming. A bit verbose, but....

Fixes #184

@alecf @felixoi will this work for you?

We need to return different versions of `ParsedQuery` based on the values of `parseBooleans` and `parseNumbers`.

Fixes sindresorhus#184
@cdeutsch
Copy link
Contributor Author

Note I also removed the readonly from ParsedQuery and its variants, because parse is not returning a readonly object. You are able to modify its results (and I do in my code). Maybe I'm missing something there?

@sindresorhus sindresorhus changed the title Fix types Fix TypeScript types Jun 20, 2019
@cdeutsch cdeutsch closed this Jun 20, 2019
@cdeutsch cdeutsch deleted the fix-typings branch June 20, 2019 14:21
@cdeutsch cdeutsch restored the fix-typings branch June 20, 2019 14:21
@cdeutsch
Copy link
Contributor Author

Oops. Accidentally deleted the branch from my repo when cleaning up.

@cdeutsch cdeutsch reopened this Jun 20, 2019
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.

broken types for parse

3 participants