Repository navigation
Replies: 1 comment
|
The augmentation itself is valid. A likely cause is that ts-node has not loaded your separate Keep your declaration in {
"compilerOptions": {
"module": "CommonJS",
"strict": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts"],
"ts-node": {
"files": true
}
}Or test the change from the CLI without editing the config: npx ts-node --files src/middleware.tsThe top-level I reproduced a missing |
Uh oh!
There was an error while loading. Please reload this page.
If I declare any custom type in express, typescript project in some where in ./src it does not work. like
in index.d.ts
But When I on top of my middleware file like
it works.
Please let me know is it ts-node problem or not? and how can I get better solution.
All reactions