mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
27 lines
375 B
TypeScript
27 lines
375 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @outDir: ./out
|
|
|
|
// @Filename: /defs.d.ts
|
|
interface A {
|
|
mNumber(): number;
|
|
}
|
|
// @Filename: /a.js
|
|
/** @implements A */
|
|
class B {
|
|
mNumber() {
|
|
return 0;
|
|
}
|
|
}
|
|
/** @implements {A} */
|
|
class B2 {
|
|
mNumber() {
|
|
return "";
|
|
}
|
|
}
|
|
/** @implements A */
|
|
class B3 {
|
|
}
|