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
error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ readonly Unspecified?: string | undefined; readonly Utc?: string | undefined; readonly Local?: string | undefined; }'.
No index signature with a parameter of type 'string' was found on type '{ readonly Unspecified?: string | undefined; readonly Utc?: string | undefined; readonly Local?: string | undefined; }'.
2217 (<any>data["enumDictionary"])[key] = this.enumDictionary[key];
~~~~~~~~~~~~~~~~~~~~~~~~
Apparantely, typescript assumes key is of type string.
The text was updated successfully, but these errors were encountered:
The following property in DTO:
Generates the following piece of code in
toJSON
method:Typescript complains:
Apparantely, typescript assumes
key
is of type string.The text was updated successfully, but these errors were encountered: