摘要: From previous post, Builder pattern - 03 If we do the following changes: - class TypeSafeStringMap<TMap extends Record<string, string> = {}> { + class 阅读全文
posted @ 2023-02-14 15:07 Zhentiw 阅读(18) 评论(0) 推荐(0) 编辑
摘要: import { expect, it } from 'vitest'; class TypeSafeStringMap<TMap extends Record<string, string> = {}> { private map: TMap; constructor() { this.map = 阅读全文
posted @ 2023-02-14 14:24 Zhentiw 阅读(11) 评论(0) 推荐(0) 编辑