tschoffelen / react-native-email-link

📭 Open an email client from React Native (for 'magic link' type functionality).
MIT License
396 stars 70 forks source link

Update function declarations to support async/await #47

Closed avery-pierce closed 4 years ago

avery-pierce commented 4 years ago

The implementation of both openInbox and openComposer are async, which means the function returns a promise (not void). This PR corrects the typescript definitions of these functions, so Typescript projects that consume this library can call await openInbox({ ... }) without getting warned by the transpiler or linter.

tschoffelen commented 4 years ago

Oh, that's indeed something we've recently added, without thinking to update the definition file... Thanks!