首页 > TAG信息列表 > Definite

[Typescript] Definite assignment operator

The definite assignment !: operator is used to suppress TypeScript’s objections about a class field being used, when it can’t be proven1 that it was initialized. Definite assignment operator can help with this case, if you are sure that the code will h