Closed tihobanov closed 2 years ago
I am trying to return a response as an array of objects, but there is no way to do it.
Desired body type [ {},{},{} ] I have tried export interface MyTest { id: string; } export interface Response extends Array<MyTest>{}
Can you advise, please?
You can do
export interface MyTest { id: string; } export type Response = MyTest[];
I am trying to return a response as an array of objects, but there is no way to do it.
Can you advise, please?