I currently have defined a Ship struct in my backend code, as well as a Port struct which contains an attribute ships_berthed that is of type Vec.
However, on my frontend (Svelte), when I try to call on the aforementioned vector, I receive an error that goes: IdlError: Type not found: {"type":{"defined":"Ship"}}
I am assuming this is from my .ts file in my types folder but I am unsure how to resolve it. Any help would be greatly appreciated! :))