Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement ambient comment #1102

Open
sunrabbit123 opened this issue Oct 31, 2023 · 0 comments
Open

feat: implement ambient comment #1102

sunrabbit123 opened this issue Oct 31, 2023 · 0 comments

Comments

@sunrabbit123
Copy link
Collaborator

//@Filename: decls.ts
// Ambient external module with export assignment
declare module 'equ' {
    var x;
    export = x;
}

declare module 'equ2' {
    var x: number;
}

// Ambient external import declaration referencing ambient external module using top level module name
//@Filename: consumer.ts
/// <reference path="decls.ts" />
import imp1 = require('equ');


// Ambient external module members are always exported with or without export keyword when module lacks export assignment
import imp3 = require('equ2');
var n = imp3.x;
var n: number;
@sunrabbit123 sunrabbit123 added this to the v0.0.1: Correctness milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant