fix(plugin): export RoutePatch (#39)

This commit is contained in:
Lukas Senionis
2022-10-19 22:44:13 +03:00
committed by GitHub
parent 276e4eccd2
commit c44c66facd

View File

@@ -21,7 +21,7 @@ interface ServerResponseError {
export type ServerResponse<TRes> = ServerResponseSuccess<TRes> | ServerResponseError;
type RoutePatch = (route: RouteProps) => RouteProps;
export type RoutePatch = (route: RouteProps) => RouteProps;
export interface RouterHook {
addRoute(path: string, component: ComponentType, props?: Omit<RouteProps, 'path' | 'children'>): void;