mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
587 B
TypeScript
27 lines
587 B
TypeScript
//// [tests/cases/conformance/declarationEmit/exportDefaultNamespace.ts] ////
|
|
|
|
//// [exportDefaultNamespace.ts]
|
|
export default function someFunc() {
|
|
return 'hello!';
|
|
}
|
|
|
|
someFunc.someProp = 'yo';
|
|
|
|
|
|
//// [exportDefaultNamespace.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = someFunc;
|
|
function someFunc() {
|
|
return 'hello!';
|
|
}
|
|
someFunc.someProp = 'yo';
|
|
|
|
|
|
//// [exportDefaultNamespace.d.ts]
|
|
declare function someFunc(): string;
|
|
export default someFunc;
|
|
declare namespace someFunc {
|
|
var someProp: string;
|
|
}
|