@@ -27,17 +27,17 @@ import type { ColorInputWithoutInstance } from 'tinycolor2'
2727
2828/**
2929 * Converts any valid `TinyColor` colors to hex string
30- * @param { ColorInputWithoutInstance } rgb a color string
31- * @returns { String } a hex string like `#FF0000`
30+ * @param rgb a color string
31+ * @returns a hex string like `#FF0000`
3232 */
3333const colorToHex = ( rgb : ColorInputWithoutInstance ) : string => {
3434 return Color ( rgb ) . toHexString ( ) . toUpperCase ( )
3535}
3636
3737/**
3838 * Transforms any `TinyColor` to 8 length HEX (alpha included)
39- * @param { ColorInputWithoutInstance } color representation from `TinyColor`
40- * @returns { String } An 8 length hex string like `#FF0000FF`
39+ * @param color representation from `TinyColor`
40+ * @returns An 8 length hex string like `#FF0000FF`
4141 */
4242const colorToHex8 = ( color : ColorInputWithoutInstance ) : string => {
4343 return Color ( color ) . toHex8String ( ) . toUpperCase ( )
@@ -46,8 +46,8 @@ const colorToHex8 = (color: ColorInputWithoutInstance): string => {
4646/**
4747 * Transforms any `TinyColor` to RGBA object ( {r:number, g:number, b:number, a:number} )
4848 * also exported as `hexToRgb` for backward compatiblity reasons
49- * @param { ColorInputWithoutInstance } color representation from `TinyColor`
50- * @returns { Color.ColorFormats.RGBA } A `TinyColor` RGBA type
49+ * @param color representation from `TinyColor`
50+ * @returns A `TinyColor` RGBA type
5151 */
5252const colorToRGB = (
5353 color : ColorInputWithoutInstance
@@ -57,8 +57,8 @@ const colorToRGB = (
5757
5858/**
5959 * Transforms any `TinyColor` to HSVA object ( {h:number, s:number, v:number, a:number} )
60- * @param { ColorInputWithoutInstance } color representation from `TinyColor`
61- * @returns { Color.ColorFormats.HSVA } A `TinyColor` HSVA type
60+ * @param color representation from `TinyColor`
61+ * @returns A `TinyColor` HSVA type
6262 */
6363const colorToHsva = (
6464 color : ColorInputWithoutInstance
@@ -68,8 +68,8 @@ const colorToHsva = (
6868
6969/**
7070 * Transforms any `TinyColor` to HSLA object ( {h:number, s:number, l:number, a:number} )
71- * @param { ColorInputWithoutInstance } color representation from `TinyColor`
72- * @returns { Color.ColorFormats.HSLA } A `TinyColor` HSLA type
71+ * @param color representation from `TinyColor`
72+ * @returns A `TinyColor` HSLA type
7373 */
7474const colorToHsla = (
7575 color : ColorInputWithoutInstance
0 commit comments