Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/pdf-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install --save @types/pdf-parse
Summary
This package contains type definitions for pdf-parse (https://gitlab.com/autokent/pdf-parse).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdf-parse.
index.d.ts
/// <reference types="node" />
export = PdfParse;
declare function PdfParse(dataBuffer: Buffer, options?: PdfParse.Options): Promise<PdfParse.Result>;
declare namespace PdfParse {
type Version = "default" | "v1.9.426" | "v1.10.100" | "v1.10.88" | "v2.0.550";
interface Result {
numpages: number;
numrender: number;
info: any;
metadata: any;
version: Version;
text: string;
}
interface Options {
pagerender?: ((pageData: any) => string | Promise<string>) | undefined;
max?: number | undefined;
version?: Version | undefined;
}
}
Additional Details
- Last updated: Wed, 02 Apr 2025 02:10:34 GMT
- Dependencies: @types/node
Credits
These definitions were written by Philipp Katz.