mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts] ////
|
|
|
|
//// [parserModuleDeclaration11.ts]
|
|
declare namespace string {
|
|
interface X { }
|
|
export function foo(s: string);
|
|
}
|
|
string.foo("abc");
|
|
var x: string.X;
|
|
|
|
|
|
//// [parserModuleDeclaration11.js]
|
|
"use strict";
|
|
string.foo("abc");
|
|
var x;
|