5.3: Updating Interfaces
Now that we've update the User
entity on the backend and added DTOs, let's update our SPA
client to match.
Updating User
We'll match our User.ts
interface to match our UserForDetail
DTO.
Adding Photo
Next, in your models folder, create another interface called Photo.ts
and add the properties in the PhotoForDetail
DTO
Make sure you go back to the User
interface and import the Photo
interface
Last updated