mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
058a62f8a3
## Summary - track TypeScript ambient contexts using a nesting depth in `SemanticBuilder` - enter ambient context for declaration files and `declare` declarations, including declarations without their own scope - replace namespace-based and ancestry-based ambient detection - use the ambient context for reserved keywords, global augmentations, class heritage, computed class members, and bodyless accessors - extend conformance coverage for ambient variables, properties, functions, and classes This approach was discussed with overlookmotel yesterday after some brainstorming!
8 lines
182 B
TypeScript
8 lines
182 B
TypeScript
export {};
|
|
|
|
declare let f: (package: number) => interface;
|
|
class C { declare field: package; }
|
|
|
|
declare function f2(package: number): interface;
|
|
|
|
declare class C2 { field: package; } |