#classes

1 entry tagged “classes”.

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 →