8000 Use common interface · mstomar698/rushstack@4c9cb80 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c9cb80

Browse files
committed
Use common interface
1 parent 9dcdf8b commit 4c9cb80

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

rush-plugins/rush-serve-plugin/src/RushProjectServeConfigFile.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ export interface IRushProjectServeJson {
1212
routing: IRoutingRuleJson[];
1313
}
1414

15-
export interface IRoutingFolderRuleJson {
16-
projectRelativeFile: undefined;
17-
projectRelativeFolder: string;
15+
export interface IBaseRoutingRuleJson {
1816
servePath: string;
1917
immutable?: boolean;
2018
}
2119

22-
export interface IRoutingFileRuleJson {
20+
export interface IRoutingFolderRuleJson extends IBaseRoutingRuleJson {
21+
projectRelativeFile: undefined;
22+
projectRelativeFolder: string;
23+
}
24+
25+
export interface IRoutingFileRuleJson extends IBaseRoutingRuleJson {
2326
projectRelativeFile: string;
2427
projectRelativeFolder: undefined;
25-
servePath: string;
26-
immutable?: boolean;
2728
}
2829

2930
export type IRoutingRuleJson = IRoutingFileRuleJson | IRoutingFolderRuleJson;

0 commit comments

Comments
 (0)
0