You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that I pass the string type, but I don't understand how to pass the key type.
The method of creating large enum or type is not suitable for us as we have really huge switch cases.
TS2345: Argument of type [string] is not assignable to parameter of type
[key: "PreFlight.WarningLogic.warningsArePresent" | "PreFlight.WarningLogic.backendError" | "PreFlight.FailedLogic.backendError" | "PreFlight.FailedLogic.seriousErrorsArePresent" | ... 161 more ... | ("PreFlight.WarningLogic.warningsArePresent" | ... 163 more ... | TemplateStringsArray)[], options?: (TOptionsBase & ...
Type [string] is not assignable to type
[key: "PreFlight.WarningLogic.warningsArePresent" | "PreFlight.WarningLogic.backendError" | "PreFlight.FailedLogic.backendError" | "PreFlight.FailedLogic.seriousErrorsArePresent" | ... 161 more ... | ("PreFlight.WarningLogic.warningsArePresent" | ... 163 more ... | TemplateStringsArray)[], options?: (TOptionsBase & ...
Type at position 0 in source is not compatible with type at position 0 in target.
Type string is not assignable to type
"PreFlight.WarningLogic.warningsArePresent" | "PreFlight.WarningLogic.backendError" | "PreFlight.FailedLogic.backendError" | "PreFlight.FailedLogic.seriousErrorsArePresent" | ... 161 more ... | ("PreFlight.WarningLogic.warningsArePresent" | ... 163 more ... | TemplateStringsArray)[]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Вот ошибка из t(title)
I understand that I pass the string type, but I don't understand how to pass the key type.
The method of creating large enum or type is not suitable for us as we have really huge switch cases.
Beta Was this translation helpful? Give feedback.
All reactions