Effect CommunityEC
Effect Community7mo ago
5 replies
Izak Filmalter

Making URL Parameters Optional in Effect Typescript

What is the right way to make urlParams optional? I am working with a third party api that allows you to pass in url params for filtering / pagination, but it also fine if you don't pass anything. I have tried the following but no dice:
HttpApiEndpoint.get().setUrlParams(
  Schema.Union(Schema.Strcut({}), Schema.Never)
)
Was this page helpful?