mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
766 B
TypeScript
28 lines
766 B
TypeScript
//// [tests/cases/conformance/ambient/ambientModuleDeclarationWithReservedIdentifierInDottedPath2.ts] ////
|
|
|
|
//// [ambientModuleDeclarationWithReservedIdentifierInDottedPath2.ts]
|
|
declare namespace chrome.debugger {
|
|
declare var tabId: number;
|
|
}
|
|
|
|
export const tabId = chrome.debugger.tabId;
|
|
|
|
declare namespace test.class {}
|
|
|
|
declare namespace debugger {} // still an error
|
|
|
|
|
|
//// [ambientModuleDeclarationWithReservedIdentifierInDottedPath2.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.tabId = void 0;
|
|
exports.tabId = chrome.debugger.tabId;
|
|
declare;
|
|
namespace;
|
|
debugger;
|
|
{ } // still an error
|
|
|
|
|
|
//// [ambientModuleDeclarationWithReservedIdentifierInDottedPath2.d.ts]
|
|
export declare const tabId: number;
|