TS1149TS1149 — Import Declaration Not Allowed in Ambient Context
An import declaration conflicts with the ambient context of the file.
TS1068An unexpected token was found inside a declaration file or declare block.
A .d.ts file or ambient declaration contains runtime code like function implementations or variable initializers. Ambient contexts only allow type declarations and signatures.
Remove function bodies and variable initializers from declaration files. Use declare keyword only for type-level declarations. Move implementation code to a .ts file.
TS1149An import declaration conflicts with the ambient context of the file.
TS1002A string literal is missing its closing quote.
TS2393A function with the same name is implemented more than once.
TS2363The right operand of an arithmetic expression must be a number or bigint type.
TS5097Two incompatible compiler options are set simultaneously in tsconfig.
TS5023An unrecognized option was found in tsconfig.json.