interface Fans {
call: any
}
interface IKun extends Fans {
tiao: () => void
};
type Transform = (x: Fans) => Fans;
type SubTransform = (x: IKun) => IKun;
const subTransform: SubTransform = (x: IKun) => {
console.log(x.tiao());
return x as any
};
const transform: Transform = subTransform;
console.log(transform({
call: function(){
}
}));