Skip to content

Commit ff89151

Browse files
committed
refactor(templates): move RouteOptions interface to types.ts
1 parent bb49688 commit ff89151

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import { Router } from 'express';
22

3+
import { RouteOptions } from './types';
34
// TODO: import components
45
// import things from './things';
56

6-
interface RouteOptions {
7-
readonly dev: boolean;
8-
}
9-
107
const path = '/';
118

129
const routes = (_: RouteOptions): Router => {
@@ -19,4 +16,3 @@ const routes = (_: RouteOptions): Router => {
1916
};
2017

2118
export default { path, routes };
22-
export { RouteOptions };
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
interface RouteOptions {
2+
readonly dev: boolean;
3+
}
4+
5+
export { RouteOptions };

0 commit comments

Comments
 (0)