You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: switch to auto generated type definitions (#110)
* refactor: switch to auto generated type definitions
* chore: switch to latest LTS version of node
Co-authored-by: Justin Schrader <jschrader@newrelic.com>
* This is the main default HOC wrapper component. There is some
251
272
* logic in here for legacy react-router v4 support
252
273
*/
253
274
exportdefault(
254
-
routes?: types.BreadcrumbsRoute[],
255
-
options?: types.Options,
275
+
routes?: BreadcrumbsRoute[],
276
+
options?: Options,
256
277
)=>(
257
278
Component: React.ComponentType<{
258
279
breadcrumbs: Array<React.ReactNode|string>
@@ -278,7 +299,7 @@ export default (
278
299
// fallback to withRouter for older react-router versions (4.x)
279
300
/* istanbul ignore next */
280
301
returnwithRouter(
281
-
(props: {location: types.Location})=>{
302
+
(props: {location: Location})=>{
282
303
// eslint-disable-next-line no-console
283
304
console.warn('[react-router-breadcrumbs-hoc]: react-router v4 support will be deprecated in the next major release. Please consider upgrading react-router and react-router-dom to >= 5.1.0');
0 commit comments