You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Honestly, I didn't find rules about when declare is required and when it's optional. But I've seen that all/most examples omit it when use export modifier.
TypeScript Version: 2.7.2
Search Terms: missed declare modifier for a top level class inside d.ts
Code
de.d.ts
test.ts
Expected behavior:
Compiler error, like:
error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.
Actual behavior
Code is compiled successfully
Related Issues:
#1940
The text was updated successfully, but these errors were encountered: