From 4eaef957ccb12efec55661588bf55b8dc8da4473 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 14 Feb 2021 12:28:45 -0500 Subject: [PATCH] Export Hsv and Rgb types for external use --- package.json | 2 +- src/colorutils.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b0e5dd1..6a58194 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@super-effective/colorutils", - "version": "2.0.0", + "version": "2.0.1", "description": "A color utility to help with converting between formats and getting color details", "keywords": [ "color", diff --git a/src/colorutils.ts b/src/colorutils.ts index 868fb6c..27ec48f 100644 --- a/src/colorutils.ts +++ b/src/colorutils.ts @@ -6,7 +6,7 @@ * @property {number} green - The green component of the color (0 - 255) * @property {number} blue - The blue component of the color (0 - 255) */ -type Rgb = { +export type Rgb = { red: number; green: number; blue: number; @@ -18,7 +18,7 @@ type Rgb = { * @property {number} saturation - The saturation the color (0.0 - 1.0) * @property {number} value - The value of the color (0.0 - 1.0) */ -type Hsv = { +export type Hsv = { hue: number; saturation: number; value: number;