How do I add custom types to my NextJS project? I have tried many different solutions via Google, i.e.
declare global {
namespace NodeJS {
export enum MyCustomEnum {
...
}
}
}
declare module "my-custom-module" {
export enum MyCustomEnum { ... }
}
Neither of these approaches work and I'm stuck.