feat: add TypeScript support

This commit is contained in:
Jose Grana 2019-03-01 09:26:15 +01:00
parent a000a8ef0f
commit bbbe22214b

20
index.d.ts vendored Normal file
View File

@ -0,0 +1,20 @@
// CREDITS: This types are based on the original work made by all the people who contributed to @types/react-native
declare module "@react-native-community/react-native-clipboard" {
export interface ClipboardStatic {
/**
* Get content of string type
*/
getString(): Promise<string>;
/**
* Set content of string type.
* @param content Clipboard content
*/
setString(content: string): void;
}
const Clipboard: ClipboardStatic;
export default Clipboard;
}