π Search Terms
ambient context, declare namespace, using, await using
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.9.0-dev.20250522#code/CYUwxgNghgTiAEA7KBbEBnADlMCBqUEAlsFAC5ED2i8A3gFDzwCu6RiA5vFAFzeIBPANz0AvkA
π» Code
declare namespace Validation {
using a: any;
}
π Actual behavior
In the generated dts, a becomes a const declarator:
declare namespace Validation {
const a: any;
}
π Expected behavior
The generated dts should be the same as the input
declare namespace Validation {
using a: any;
}
Additional information about the issue
No response
π Search Terms
ambient context, declare namespace, using, await using
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.9.0-dev.20250522#code/CYUwxgNghgTiAEA7KBbEBnADlMCBqUEAlsFAC5ED2i8A3gFDzwCu6RiA5vFAFzeIBPANz0AvkA
π» Code
π Actual behavior
In the generated dts,
abecomes aconstdeclarator:π Expected behavior
The generated dts should be the same as the input
Additional information about the issue
No response