Created
March 26, 2020 01:18
-
-
Save trblackw/b53437e2a8852b1fd1511a2835ec86b2 to your computer and use it in GitHub Desktop.
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
interface User { | |
username: string; | |
age: number; | |
email: string; | |
} | |
const createUser = (user: User) => { | |
//fetch request that requires all User properties | |
} | |
const updateUser = (user: Partial<User>) => { | |
//fetch request that doesn't require any User properties | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment