mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added empty overload for email()
This commit is contained in:
parent
7cadcdc866
commit
6ba8518b44
1
types/react-native-communications/index.d.ts
vendored
1
types/react-native-communications/index.d.ts
vendored
@ -6,6 +6,7 @@
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
export function phonecall(phoneNumber: string, isPrompt: boolean): void;
|
||||
export function email(): void;
|
||||
export function email(to: string[] | null, cc: string[]| null, bcc: string[] | null, subject: string | null, body: string | null): void;
|
||||
export function text(phoneNumber?: string | null, body?: string | null): void;
|
||||
export function textWithoutEncoding(phoneNumber?: string | null, body?: string | null): void;
|
||||
|
||||
@ -2,6 +2,7 @@ import { phonecall, email, text, textWithoutEncoding, web } from 'react-native-c
|
||||
|
||||
phonecall('123456789', true);
|
||||
|
||||
email();
|
||||
email(['a@example.com'], null, ['a@example.com'], 'subject', null);
|
||||
|
||||
text();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user