Skip to content

Commit

Permalink
fix: 🐛 Use correct parameter type for color
Browse files Browse the repository at this point in the history
  • Loading branch information
phun-ky committed Nov 24, 2023
1 parent 5e79958 commit 1b09722
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/classes/MoebiusColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
MoebiusLCHObjectType,
MoebiusColorInterface,
MoebiusRGBObjectType,
MoebiusXYZObjectType
MoebiusXYZObjectType,
MoebiusChromaColorInputType
} from '../types';

import * as CONVERTERS from '../utils/converters';
Expand All @@ -24,7 +25,7 @@ import * as CONVERTERS from '../utils/converters';
* ```
*/
export class MoebiusColor implements MoebiusColorInterface {
color: MoebiusColorValueHexType;
color: MoebiusChromaColorInputType;
name: string;
hex: MoebiusColorValueHexType;
rgb: MoebiusColorValueRgbType;
Expand All @@ -41,12 +42,12 @@ export class MoebiusColor implements MoebiusColorInterface {

/**
* Creates an instance of MoebiusColor.
* @param {MoebiusColorValueHexType} value - The hex value of the color.
* @param {MoebiusChromaColorInputType} value - The hex value of the color.
* @param {string} name - The name of the color
* @constructor
* @throws Will throw an error if init has not been run before creating an instance.
*/
constructor(color: MoebiusColorValueHexType, name: string) {
constructor(color: MoebiusChromaColorInputType, name: string) {
this.color = color;
this.name = name;

Expand Down

0 comments on commit 1b09722

Please sign in to comment.