Created
December 22, 2019 21:23
-
-
Save rcdexta/ae3f2382e56a5348bd0a4ec6115242c2 to your computer and use it in GitHub Desktop.
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
interface Customer { | |
name: string | |
phone: string | |
} | |
declare function getCustomerData(id: string): Promise<Customer>; | |
declare function payCustomer(customer: Customer): void; | |
async function f() { | |
const customer = getCustomerData('c1') | |
payCustomer(customer) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment