Created
July 31, 2020 11:51
-
-
Save corocoto/e452c294045c04ea5fcbf5d4d4432bc9 to your computer and use it in GitHub Desktop.
Flow | Type Alias
This file contains hidden or 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
| type PaymentMethod = { | |
| id: number, | |
| name: string, | |
| limit: number, | |
| }; | |
| var myPaypal: PaymentMethod = { | |
| id: 123456, | |
| name: 'Preethi Paypal', | |
| limit: 10000, | |
| }; | |
| type Name = string; | |
| type Email = string; | |
| var myName: Name = 'Preethi'; | |
| var myEmail: Email = '[email protected]'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment