UNPKG

react-pdf

Version:

Display PDFs in your React app as easily as if they were images.

22 lines (21 loc) 367 B
type State<T> = { value: T; error: undefined; } | { value: false; error: Error; } | { value: undefined; error: undefined; }; type Action<T> = { type: 'RESOLVE'; value: T; } | { type: 'REJECT'; error: Error; } | { type: 'RESET'; }; export default function useResolver<T>(): [State<T>, React.Dispatch<Action<T>>]; export {};