jaames / iro.js

🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats

Home Page:https://iro.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong TS declaration of id at ColorPickerProps

th1nkgr33n opened this issue · comments

Hey, I had some starting issues to setup the ts properly using your library.
In the end this was the last puzzle piece and I thing the type of the id inside ColorPickerProps shouldn't be null instead it should be a string?

export interface ColorPickerProps extends IroColorPickerOptions {
  display?: string;
  id?: null; <<<---- shouldn't this be a string?
  layout?: ColorPickerLayoutDefinition[] | ColorPickerLayoutShorthand;
  colors?: IroColorValue[];
  transparency?: boolean;
  margin: number;
}