Files
oxc-project__oxc/crates/oxc_isolated_declarations/tests/fixtures/expando-function-strip-internal.ts
camc314 b846abc2a4 fix(isolated-declarations): handle ambient expando properties (#25655)
## Summary

- treat value declarations in ambient namespaces as implicitly exported for expando-function validation
- preserve local versus exported namespace visibility to match TypeScript declaration merging
- add regression coverage for accepted ambient value declarations and rejected local or type-only declarations

## TypeScript compatibility

The regression fixture was checked with TypeScript 6.0.3. TypeScript and Oxc produce TS9023 only for the exported-function/local-namespace mismatch and the type-only namespace property.

Closes #24975
2026-08-17 02:25:03 +00:00

10 lines
189 B
TypeScript

/** @internal */
function functionDeclaration(): void {}
functionDeclaration.property = 1;
/** @internal */
const variableDeclaration = (): void => {};
variableDeclaration.property = 1;