Skip to content

Commit

Permalink
Fixed error on exports
Browse files Browse the repository at this point in the history
  • Loading branch information
MattEzekiel committed Oct 29, 2024
1 parent f94823c commit 13933dc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 63 deletions.
2 changes: 1 addition & 1 deletion desaturate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ensureHexFormat from "../ensureHexFormat";
* Lightens a color.
* @param color - The base color in hex format.
* @param coefficient - The coefficient between 0 and 1 to determine how much to lighten the color.
* @returns The lightened color in hex format.
* @returns The desaturate color in hex format.
*/
function desaturate(color: string, coefficient: number): string {
const c = Color(color).desaturate(coefficient).hex();
Expand Down
15 changes: 0 additions & 15 deletions index.d.ts

This file was deleted.

39 changes: 0 additions & 39 deletions index.js

This file was deleted.

4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ligthen from "./lighten";
import lighten from "./lighten";
import darken from "./darken";
import saturate from "./saturate";
import desaturate from "./desaturate";

export { ligthen, darken, saturate, desaturate, };
export { lighten, darken, saturate, desaturate };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "color-manipulation-utils",
"version": "1.0.9",
"version": "1.0.10",
"description": "Check contrast of colors HEX",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion saturate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ensureHexFormat from "../ensureHexFormat";
* Lightens a color.
* @param color - The base color in hex format.
* @param coefficient - The coefficient between 0 and 1 to determine how much to lighten the color.
* @returns The lightened color in hex format.
* @returns The saturated color in hex format.
*/
function saturate(color: string, coefficient: number): string {
const c = Color(color).saturate(coefficient).hex();
Expand Down
8 changes: 4 additions & 4 deletions test/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ligthen, darken, desaturate, saturate } from "../index";
import { lighten, darken, saturate, desaturate } from "../index";

console.log(ligthen('#7a0f0f', 0.2));
console.log(lighten('#7a0f0f', 0.2));
console.log(darken('#068806', 0.8));
console.log(desaturate('#ffaf30', 0.8));
console.log(saturate('#000fff', 0.8));
console.log(saturate('#ff30a5', 0.2));
console.log(desaturate('#30ff6b', 0.2));

0 comments on commit 13933dc

Please sign in to comment.