Skip to content

Commit 6099ef5

Browse files
authored
Merge pull request #31 from BasselAshi/1-0-0-patch-interfaces
Replace interface with types to support statically known members
2 parents de5c144 + ac1a455 commit 6099ef5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-router-loading/lib/Route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { FC } from 'react';
22
import { Route as OriginalRoute, RouteProps as OriginalRouteProps } from 'react-router';
33

4-
interface RouteProps extends OriginalRouteProps {
4+
type RouteProps = OriginalRouteProps & {
55
loading?: boolean;
66
}
77

packages/react-router-loading/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { matchRoutes, RouteObject, Location } from 'react-router';
33

4-
export interface LoadingRouteObject extends RouteObject {
4+
export type LoadingRouteObject = RouteObject & {
55
loading?: boolean;
66
}
77

0 commit comments

Comments
 (0)