摘要: Let's say we need to use a library with commonJS code. class Melon { cutIntoSlices() { } } module.exports = Melon Then we want to import this inside o 阅读全文
posted @ 2024-01-28 20:36 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要: //////////////////////////////////////////////////////// // @filename: berries/raspberry.ts export class Raspberry { constructor(public color: 'red' | 阅读全文
posted @ 2024-01-28 20:14 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑