Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
some improvements to typings file
Browse files Browse the repository at this point in the history
  • Loading branch information
HackbrettXXX committed Dec 23, 2019
1 parent e1241ec commit 20ed9c9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,10 @@ declare module "jspdf-yworks" {
discardPath(): jsPDF;
close(): jsPDF;
stroke(): jsPDF;
fill(pattern: PatternData): jsPDF;
fillEvenOdd(pattern: PatternData): jsPDF;
fillStroke(pattern: PatternData): jsPDF;
fillStrokeEvenOdd(pattern: PatternData): jsPDF;
fill(pattern?: PatternData): jsPDF;
fillEvenOdd(pattern?: PatternData): jsPDF;
fillStroke(pattern?: PatternData): jsPDF;
fillStrokeEvenOdd(pattern?: PatternData): jsPDF;
moveTo(x: number, y: number): jsPDF;
lineTo(x: number, y: number): jsPDF;
curveTo(
Expand Down Expand Up @@ -1187,6 +1187,9 @@ declare module "jspdf-yworks" {
addShadingPattern(key: string, pattern: ShadingPattern): jsPDF;
beginTilingPattern(pattern: TilingPattern): void;
endTilingPattern(key: string, pattern: TilingPattern): void;

static API: jsPDFAPI;
static version: string;
}

export interface GState {
Expand Down Expand Up @@ -1251,10 +1254,5 @@ declare module "jspdf-yworks" {
events: [];
}

namespace jsPDF {
const API: jsPDFAPI;
const version: string;
}

export default jsPDF;
}

0 comments on commit 20ed9c9

Please sign in to comment.