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
typeThing={|id: number,name: string,|};typeThing$External={|
...Thing,id: string,// Overwrite ID's to be strings, not numbers|};functiontoExternal(thing: Thing): Thing$External{return{ ...thing,id: thing.id.toString()};// ^ Cannot return object literal because number [1] is incompatible// with string [2] in property `id`.}
Example
Expected behaviour
This should work.
Try link
The text was updated successfully, but these errors were encountered: