Skip to main content

TypeScript

Type Definitions

Overwrite exiting vendor type definitions

vendor/custom.d.ts

declare global {
namespace NodeJS {
interface Global {
myConfig: {
a: number;
b: number;
}
}
}
}

tsconfig.json

{
"types": [
...
"vendor/custom.d.ts"
]
}