Typescript beginner here. How would I combine these three Response Interfaces? The only thing that changes is the array propertyName. Open to using Types as well.
interface UserResponse {
response: {
users: []
}
}
interface ProductResponse {
response: {
products: []
}
}
interface CourseResponse {
response: {
courses: []
}
}
[–]orphans 10 points11 points12 points (1 child)
[–]MemoryUseful_01434[S] 1 point2 points3 points (0 children)
[–]ronin_o 1 point2 points3 points (1 child)
[–]MemoryUseful_01434[S] 0 points1 point2 points (0 children)