mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
269 B
TypeScript
20 lines
269 B
TypeScript
//// [tests/cases/compiler/declarationEmitMethodDeclaration.ts] ////
|
|
|
|
//// [a.js]
|
|
export default {
|
|
methods: {
|
|
foo() { }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [a.d.ts]
|
|
declare const _default: {
|
|
methods: {
|
|
foo(): void;
|
|
};
|
|
};
|
|
export default _default;
|