Skip to content

Commit d0786d0

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 82c9029 + 8eef2a1 commit d0786d0

File tree

6 files changed

+3060
-3428
lines changed

6 files changed

+3060
-3428
lines changed

dist/index.d.ts

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by dts-bundle-generator v8.1.2
1+
// Generated by dts-bundle-generator v9.5.1
22

33
export type jsPDFConstructor = any;
44
export type jsPDFDocument = any;
@@ -41,10 +41,15 @@ declare class DocHandler {
4141
getLineHeight(fontSize: number): number;
4242
pageNumber(): number;
4343
}
44+
export type MarginPadding = {
45+
top: number;
46+
right: number;
47+
bottom: number;
48+
left: number;
49+
};
4450
declare class HookData {
4551
table: Table;
4652
pageNumber: number;
47-
pageCount: number;
4853
settings: Settings;
4954
doc: jsPDFDocument;
5055
cursor: Pos | null;
@@ -57,12 +62,6 @@ export declare class CellHookData extends HookData {
5762
section: "head" | "body" | "foot";
5863
constructor(doc: DocHandler, table: Table, cell: Cell, row: Row, column: Column, cursor: Pos | null);
5964
}
60-
export type MarginPadding = {
61-
top: number;
62-
right: number;
63-
bottom: number;
64-
left: number;
65-
};
6665
export interface ContentInput {
6766
body: RowInput[];
6867
head: RowInput[];
@@ -134,7 +133,6 @@ export declare class Table {
134133
pageNumber: number;
135134
finalY?: number;
136135
startPageNumber?: number;
137-
pageCount: number;
138136
constructor(input: TableInput, content: ContentSettings);
139137
getHeadHeight(columns: Column[]): number;
140138
getFootHeight(columns: Column[]): number;
@@ -284,10 +282,8 @@ export interface UserOptions {
284282
}
285283
export type ColumnInput = string | number | {
286284
header?: CellInput;
287-
title?: CellInput;
288285
footer?: CellInput;
289286
dataKey?: string | number;
290-
key?: string | number;
291287
};
292288
export type Color = [
293289
number,
@@ -307,7 +303,6 @@ export interface CellDef {
307303
colSpan?: number;
308304
styles?: Partial<Styles>;
309305
content?: string | string[] | number;
310-
title?: string;
311306
_element?: HTMLTableCellElement;
312307
}
313308
declare class HtmlRowInput extends Array<CellDef> {
@@ -318,11 +313,11 @@ export type CellInput = null | string | string[] | number | boolean | CellDef;
318313
export type RowInput = {
319314
[key: string]: CellInput;
320315
} | HtmlRowInput | CellInput[];
321-
export type autoTable = (options: UserOptions) => void;
316+
export type autoTableInstanceType = (options: UserOptions) => void;
322317
export declare function applyPlugin(jsPDF: jsPDFConstructor): void;
323-
declare function autoTable(d: jsPDFDocument, options: UserOptions): void;
324-
declare function __createTable(d: jsPDFDocument, options: UserOptions): Table;
325-
declare function __drawTable(d: jsPDFDocument, table: Table): void;
318+
export declare function autoTable(d: jsPDFDocument, options: UserOptions): void;
319+
export declare function __createTable(d: jsPDFDocument, options: UserOptions): Table;
320+
export declare function __drawTable(d: jsPDFDocument, table: Table): void;
326321

327322
export {
328323
autoTable as default,

0 commit comments

Comments
 (0)