• M
    Marking a bunch of static variables as readonly · b0dccbcf
    Matt Bierner 提交于
    Readonly helps out with TS's type guards and is also a good best practice. Specifically, readonly strings/numbers have their literal type instead of a generic `string` | `number` type, which can help catch dead code and some common programming mistakes
    b0dccbcf
themes.contribution.ts 11.8 KB