Created
August 1, 2021 06:48
-
-
Save Goldziher/6a414d0f923f44b28d4d14c930b93441 to your computer and use it in GitHub Desktop.
Service method returning mock data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
getUser = async (id: string): Promise<UserDTO> => { | |
const { data } = await UserDTOFactory.build({ id }); | |
return data; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment