mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-05 00:00:18 -04:00
fix(api): only import types from ts-reset (#54565)
This commit is contained in:
committed by
GitHub
parent
0e96a564b6
commit
4b71954dbb
1
api/src/reset.d.ts
vendored
Normal file
1
api/src/reset.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import '@total-typescript/ts-reset';
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user