UNPKG

react-pdf-simple-viewer

Version:

![License](https://img.shields.io/github/license/cdx0/react-pdf-simple-viewer?style=flat-square) ![NPM](https://img.shields.io/npm/v/react-pdf-simple-viewer?style=flat-square) ![typescript](https://img.shields.io/badge/%E6%94%AF%E6%8C%81-typescript-blue?s

9 lines (8 loc) 335 B
import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api'; declare type useDocumenParams = { URL: string; onSuccess?: (PDF: PDFDocumentProxy) => void; onError?: (e: any) => void; }; export declare function useDocumen({ URL, onSuccess, onError }: useDocumenParams): (PDFDocumentProxy | null)[]; export {};