mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
b89019d191
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]> Co-authored-by: DanielRosenwasser <[email protected]>
30 lines
525 B
TypeScript
30 lines
525 B
TypeScript
// @declaration: true
|
|
// @strict: true
|
|
// @module: esnext, commonjs
|
|
|
|
// @filename: exportDefaultObject.ts
|
|
/** Object comment */
|
|
export default {
|
|
fn() {}
|
|
}
|
|
|
|
// @filename: exportDefaultFunction.ts
|
|
/** Function comment */
|
|
export default function() {
|
|
return 42;
|
|
}
|
|
|
|
// @filename: exportDefaultClass.ts
|
|
/** Class comment */
|
|
export default class {
|
|
method() {}
|
|
}
|
|
|
|
// @filename: exportDefaultLiteral.ts
|
|
/** Literal comment */
|
|
export default 42;
|
|
|
|
// @filename: exportDefaultNull.ts
|
|
/** Null comment */
|
|
export default null;
|