Skip to content

Commit

Permalink
Add missing static props and create function to types
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Oct 22, 2019
1 parent 4b030b0 commit f0ef569
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/pickr.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
declare class Pickr {

static version: string; // Current version
static utils: any; // See docs
static libs: any; // See docs

constructor(options: Pickr.Options);

static create(options: Pickr.Options): Pickr;

setHSVA(h?: number, s?: number, v?: number, a?: number, silent?: boolean): boolean

setColor(str: string | null, silent?: boolean): boolean;
Expand Down Expand Up @@ -37,7 +44,7 @@ declare class Pickr {

addSwatch(color: string): boolean;

removeSwatch(index: number): boolean
removeSwatch(index: number): boolean;
}

declare namespace Pickr {
Expand Down

0 comments on commit f0ef569

Please sign in to comment.