import { type } from "os" ; interface Barkable { barking ( ) : void ; } interface Shakable { shaking ( ) : void ; } interface Petable extends Barkable , Shakable { eating ( ) : void ; } class Dog implements Petable { barking ( ) { console . log ( "汪汪叫" ) ; } shaking ( ) { console . log ( "摇尾巴" ) ; } eating ( ) { console . log ( "吃骨头" ) ; } } export { } ;