mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
465 B
TypeScript
25 lines
465 B
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsFunctionWithDefaultAssignedMember.ts] ////
|
|
|
|
//// [index.js]
|
|
function foo() {}
|
|
|
|
foo.foo = foo;
|
|
foo.default = foo;
|
|
module.exports = foo;
|
|
|
|
//// [index.js]
|
|
"use strict";
|
|
function foo() { }
|
|
foo.foo = foo;
|
|
foo.default = foo;
|
|
module.exports = foo;
|
|
|
|
|
|
//// [index.d.ts]
|
|
export = foo;
|
|
declare function foo(): void;
|
|
declare namespace foo {
|
|
export { foo };
|
|
export { foo as default };
|
|
}
|