swc/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.ts

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 {
}