Skip to content

Commit ac1a455

Browse files
authored
Replace interface with types to support statically known members
1 parent de5c144 commit ac1a455

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)