fix(api): only import types from ts-reset (#54565)

This commit is contained in:
Oliver Eyton-Williams
2024-04-30 09:22:16 +02:00
committed by GitHub
parent 0e96a564b6
commit 4b71954dbb
2 changed files with 6 additions and 3 deletions

1
api/src/reset.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
import '@total-typescript/ts-reset';

View File

@@ -1,6 +1,8 @@
// We import these declaration files here, in the entry point of our application, so
// that they're available throughout.
import '@total-typescript/ts-reset';
// We need to use the triple-slash directive to ensure that ts-node uses the
// reset.d.ts file. It's not possible to import the file directly because it
// is not included in the build (it's a dev dependency).
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="./reset.d.ts" />
import { build } from './app';
import { FREECODECAMP_NODE_ENV, PORT } from './utils/env';