Fix project references of local @types/express.d.ts

The `comments-server` package requires the `server` package, but
previously it did not load the updates of global Express.Request
definitions correctly.

By adding the triple slash comment:

/// <reference path="../@types/express.d.ts" /> to the top

to the top of packages/server/src/index.ts, the issue is now resolved
This commit is contained in:
Jerko Steiner 2019-11-01 08:47:57 -04:00
parent dbed11214d
commit d560f7a725
2 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,9 @@ rules:
'@typescript-eslint/no-explicit-any':
- warn
- ignoreRestArgs: true
'@typescript-eslint/triple-slash-reference':
- warn
- path: always
overrides:
- files:
- '*.test.ts'

View File

@ -1,3 +1,5 @@
/// <reference path="../@types/express.d.ts" />
/// <reference path="../@types/react-ssr-prepass.d.ts" />
if (require.main === module) {
if (!process.env.LOG) {
process.env.LOG = 'api,sql:warn'