typescript
TypeScript class fields wipe values set in super()
A subclass field declaration overwrites what the base constructor assigned. useDefineForClassFields is why, and declare is the one-line fix.
Read the entry →1 entry tagged “classes”.
A subclass field declaration overwrites what the base constructor assigned. useDefineForClassFields is why, and declare is the one-line fix.
Read the entry →