Just getting started with vuejs and encountering an error in my vue file
Issue: Property 'ClientsSrv' is not recognized on type '{ name: string; props: {}; data(): { ClientsSrv: ClientsService | null; ClientsList: ClientsModel[] | null; IsReady: boolean; }; mounted(): Promise; }'
<script lang="ts">
import ClientsService from "@/Services/Clients/ClientsService";
import IClientsModel from "@/Models/ClientsModel";
export default {
name: "Clients",
props: {
},
data() : {ClientsSrv:ClientsService|null;ClientsList:IClientsModel[]|null; IsReady:boolean} {
return {
ClientsSrv: null,
ClientsList: null,
IsReady: false,
};
},
async mounted() : Promise<void> {
this.ClientsSrv = new ClientsService();
this.ClientsList = await this.ClientsSrv.GetClients();
if(this.ClientsList!=null)
{
this.IsReady = true;
}
},
};
</script>
Any suggestions or assistance would be greatly appreciated. Thanks!