AN
Не понимаю жалобу typescript
https://gist.github.com/SilentImp/4a5eacf5849ef5dc3d867bf6075614e7
Size: a a a
AN
ЗФ
AN
AN
ЗФ
@context
, @type
ЗФ
min
, max
, value
AN
AN
SG
AN
ЗФ
AN
ratingExplanation?: string;
tingExplanation={text("rating explanation", undefined)}ак следствие получаю ошибку
К
ment of type 'undefined' is not assignable to parameter of type 'string'.ужели надо писать ratingExplanation?: string; | undefined ?
Не
SG
ratingExplanation: string | undefined
SG
SG
undefined
, поэтому и ругаетсяAN
Argument of type 'undefined' is not assignable to parameter of type 'number'.
24 ratingExplanation={text("rating explanation", undefined)}
AN
AN
AK
// eslint-disable-next-line @typescript-eslint/unbound-method
window.setKeyStatus = StatusManager.setKeyStatus;
SG
window.setKeyStatus = StatusManager.setKeyStatus.bind(StatusManager)