mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
649 B
Plaintext
34 lines
649 B
Plaintext
//// [tests/cases/compiler/jsdocCommentDefaultExport.ts] ////
|
|
|
|
=== exportDefaultObject.ts ===
|
|
/** Object comment */
|
|
export default {
|
|
fn() {}
|
|
>fn : Symbol(fn, Decl(exportDefaultObject.ts, 1, 16))
|
|
}
|
|
|
|
=== exportDefaultFunction.ts ===
|
|
|
|
/** Function comment */
|
|
export default function() {
|
|
return 42;
|
|
}
|
|
|
|
=== exportDefaultClass.ts ===
|
|
/** Class comment */
|
|
export default class {
|
|
method() {}
|
|
>method : Symbol(default.method, Decl(exportDefaultClass.ts, 1, 22))
|
|
}
|
|
|
|
=== exportDefaultLiteral.ts ===
|
|
|
|
/** Literal comment */
|
|
export default 42;
|
|
|
|
=== exportDefaultNull.ts ===
|
|
|
|
/** Null comment */
|
|
export default null;
|
|
|