From f0ef5697102b532f7906750f56e41d7f01a8dcc8 Mon Sep 17 00:00:00 2001 From: Simon Reinisch Date: Tue, 22 Oct 2019 19:42:13 +0200 Subject: [PATCH] Add missing static props and create function to types --- types/pickr.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/pickr.d.ts b/types/pickr.d.ts index c67d5801..6389bdff 100644 --- a/types/pickr.d.ts +++ b/types/pickr.d.ts @@ -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; @@ -37,7 +44,7 @@ declare class Pickr { addSwatch(color: string): boolean; - removeSwatch(index: number): boolean + removeSwatch(index: number): boolean; } declare namespace Pickr {