diff --git a/types/react-router-breadcrumbs-hoc/index.d.ts b/types/react-router-breadcrumbs-hoc/index.d.ts index 9f08d8e..556083c 100644 --- a/types/react-router-breadcrumbs-hoc/index.d.ts +++ b/types/react-router-breadcrumbs-hoc/index.d.ts @@ -16,6 +16,11 @@ export interface Options { export interface BreadcrumbsRoute { path: string; breadcrumb: React.ReactNode | string; + matchOptions?: { + exact?: boolean; + sensitive?: boolean; + strict?: boolean; + } } export interface BreadcrumbsProps { diff --git a/types/react-router-breadcrumbs-hoc/react-router-breadcrumbs-hoc-tests.tsx b/types/react-router-breadcrumbs-hoc/react-router-breadcrumbs-hoc-tests.tsx index 12ebb3c..d57ccbc 100644 --- a/types/react-router-breadcrumbs-hoc/react-router-breadcrumbs-hoc-tests.tsx +++ b/types/react-router-breadcrumbs-hoc/react-router-breadcrumbs-hoc-tests.tsx @@ -18,7 +18,16 @@ const UserBreadcrumb = ({ match }: UserBreadcrumbProps) => ( const routes: BreadcrumbsRoute[] = [ { path: "/users/:userId", breadcrumb: UserBreadcrumb }, - { path: "/example", breadcrumb: "Custom Example" } + { path: "/example", breadcrumb: "Custom Example" }, + { + path: "/example/config", + breadcrumb: "Custom Example with Config", + matchOptions: { + exact: true, + sensitive: false, + strict: false, + } + } ]; const Breadcrumbs = ({ breadcrumbs }: InjectedProps) => (