diff --git a/types/index.d.ts b/types/index.d.ts index da327803..9f760f28 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -280,10 +280,7 @@ declare module 'found' { */ getComponent?: ( match: RouteMatch, - ) => - | React.ComponentType - | Promise> - | Promise; + ) => React.ComponentType | Promise>; /** * additional data for the route */