Skip to content

Commit 8fb63dc

Browse files
committed
Fix missing declaration in cjs directory. Add RoutingNames to share with server and UI
1 parent 7c9ce65 commit 8fb63dc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ export enum HttpErrorsEnum {
1717
ErrInvalidParameter = 422,
1818
SrvErrInternalServerError = 500
1919
}
20-
20+
export enum RoutingNames {
21+
login = 'login',
22+
register = 'register',
23+
configure = 'configure',
24+
busses = 'busses',
25+
specifications = 'specifications',
26+
slaves = 'slaves',
27+
specification = 'specification'
28+
}
2129
export interface ImqttClient extends IClientOptions {
2230
mqttserverurl?: string
2331
}

tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"moduleResolution": "node",
66
"outDir": "./cjs",
77
"skipLibCheck": true,
8-
"declaration": false,
8+
"declaration": true,
99
"importHelpers": true,
1010
}
1111
}

0 commit comments

Comments
 (0)