[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 handle the assignement.
isSetup!: boolean
标签:code,Typescript,help,assignment,Definite,used,operator 来源: https://www.cnblogs.com/Answer1215/p/16548591.html