Skip to content

fix(typescript-fetch): omit optional query params#2

Merged
mnahkies merged 3 commits into
masterfrom
mn/fix/typescript-fetch-query-strings
Jan 22, 2023
Merged

fix(typescript-fetch): omit optional query params#2
mnahkies merged 3 commits into
masterfrom
mn/fix/typescript-fetch-query-strings

Conversation

@mnahkies
Copy link
Copy Markdown
Owner

@mnahkies mnahkies commented Jan 22, 2023

filter out query parameters passed as undefined, unstead of passing them in the url as name=

explicit null values will still be passed to the server

prefix private methods with _ to reduce change of naming collisions with the generated public interface

filter out query parameters passed as undefined, unstead of passing
them in the url as `name=`

explicit null values will still be passed to the server
@mnahkies mnahkies enabled auto-merge (squash) January 22, 2023 12:23
it serializes to either a repeated query param as you'd expect, or an
empty string in the case of an empty array.

todo: work out a way to test helper functions like this that happen to
be generated.
@mnahkies mnahkies merged commit fd10e9b into master Jan 22, 2023
@mnahkies mnahkies deleted the mn/fix/typescript-fetch-query-strings branch January 22, 2023 16:23
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.

1 participant