UNPKG

pdf-lib

Version:

Create and modify PDF files with JavaScript

15 lines 996 B
export declare const last: <T>(array: T[]) => T; export declare const typedArrayFor: (value: string | Uint8Array) => Uint8Array; export declare const mergeIntoTypedArray: (...arrays: (string | Uint8Array)[]) => Uint8Array; export declare const mergeUint8Arrays: (arrays: Uint8Array[]) => Uint8Array; export declare const arrayAsString: (array: number[] | Uint8Array) => string; export declare const byAscendingId: <T extends { id: any; }>(a: T, b: T) => number; export declare const sortedUniq: <T>(array: T[], indexer: (elem: T) => any) => T[]; export declare const reverseArray: (array: Uint8Array) => Uint8Array; export declare const sum: (array: number[] | Uint8Array) => number; export declare const range: (start: number, end: number) => number[]; export declare const canBeConvertedToUint8Array: (input: any) => input is string | ArrayBuffer | Uint8Array; export declare const toUint8Array: (input: string | ArrayBuffer | Uint8Array) => Uint8Array; //# sourceMappingURL=arrays.d.ts.map