gcanti/fp-ts-routing

Avoid '/?' with query params?

Open

#53 opened on Apr 15, 2020

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (20 forks)github user discovery
help wanted

Repository metrics

Stars
 (172 stars)
PR merge metrics
 (PR metrics pending)

Description

format(query(t.strict({ foo: t.string })).formatter, { foo: 'foo' }); // /?foo=foo

Is there a convenient way to avoid the leading '/?'

(want to build value for react-router <Link to={{ search: ... }}>)

Contributor guide