📜  如何添加机会 mixin 的类型 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:06.077000             🧑  作者: Mango

代码示例1
const chance = new Chance() as Chance.Chance & ITime;
chance.mixin(time as any); // no error
chance.time(); // no error now I hope