I am a beginner in Typescript and apologize in advance if this is a rookie mistake.
I am struggling to resolve this TS error:
@Module({ namespaced: true, name: "Admin" })
class Admin extends VuexModule {
public adminUserList: UserList = [];
@MutationAction({ mutate: ["adminUserList"] })
async getAdminUserList(): Promise<Record<string, UserList>> {
const req = (await Utils.async({
data: adminUserList,
})) as Record<string, UserList>;
return {
adminUserList: req.data as UserList,
};
}
}