I have a TOML type declaration file, however I want to make it only match config.toml not *.toml, however if I change the module declaration, it shows the error: Cannot find module '../../config.toml' or its corresponding type declarations.
declare module "*.toml" {
const config: {
settings: {
logLevel: "none" | "normal" | "verbose";
},
addons: {
sentry: string;
}
};
export default config;
}