In the code snippet below, I am looking to remove any references from the Response variable. Not sure how to accomplish this.
this.constantsService.callServiceFunction(this.constantsService.getServiceConstant().ABCD_SERVER.GET_LIST)
.pipe(take(1))
.subscribe({
next: (response: any) => {
})
Can someone guide me on how to specify the proper datatype instead of using any
?
This is the desired response structure:
export interface DashboardRoot {
message: DashboardMessage
response: DashboardResponse[]
}