Content
@
0 reply
0 recast
0 reaction
typeof.eth 🔵
@typeof.eth
TIL that in TypeScript, if you define a class with readonly properties and an empty constructor, TypeScript will automatically assign the properties to the class. Not sure if I love that, tbh, since I was under the impression that TS tends to not modify logic...
3 replies
1 recast
46 reactions
behkod.base.eth
@behkod.eth
This isn't logic modification, as the `readonly` is only a part of TS's type system. There's no `readonly` in JS. So, stick your prev. assumptions on *logic modification* of TS.
0 reply
0 recast
0 reaction