AveroLLC / typesafe-react-router

Utility functions to help facilitate type-safe routing with react-router
Apache License 2.0
89 stars 14 forks source link

Use TS 3.0 tuple/parameter types to clean API/typings #3

Closed ksaldana1 closed 6 years ago

ksaldana1 commented 6 years ago

TypeScript 3.0 included some new features around handling parameter lists. With these changes, we can cleanup both the API and overloads related to our RouteCreator type.

This is a MAJOR breaking change, as we now accept spread arguments instead of a tuple/array: const route = route(['view', 'details', param('id')]) becomes const route = route('view', 'details', param('id'))

erin-noe-payne commented 6 years ago

It's been almost 4 hours since the release what took you so long?