DefinitelyTyped/types/react-native-doc-viewer/index.d.ts
Forbes Lindesay 8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00

26 lines
877 B
TypeScript

// Type definitions for react-native-doc-viewer 2.4
// Project: https://github.com/philipphecht/react-native-doc-viewer/blob/master/README.md
// Definitions by: Kyle Roach <https://github.com/iRoachie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
export function openDoc(
files: Array<{ url: string; fileName?: string }>,
callback: (error: string, url: string) => void
): void;
export function openDocb64(
files: Array<{ base64: string; fileName?: string; fileType?: string }>,
callback: (error: string, url: string) => void
): void;
export function openDocBinaryinUrl(
files: Array<{ url: string; fileName?: string; fileType?: string }>,
callback: (error: string, url: string) => void
): void;
export function playMovie(
path: string,
callback: (error: string, url: string) => void
): void;