Skip to content

Commit 344e121

Browse files
committed
Refactoring
1 parent 4513f1d commit 344e121

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

src/ansi/color/bit24_colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NumberRange } from "../../type/mod.ts";
22

33
/**
4-
* .
4+
* This interface represents a 24 bit color.
55
*/
66
export interface Bit24Color {
77
red : NumberRange<0, 255>,

src/ansi/color/bit4_colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ export default bit4Colors;
4545
/**
4646
* This type gets generated from the values of {@linkcode bit4Colors}.
4747
*/
48-
export type Bit4Color = ValuesFromObject<typeof bit4Colors>;
48+
export type Bit4ColorValue = ValuesFromObject<typeof bit4Colors>;

src/ansi/color/bit8_colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ export default bit8Colors;
255255
/**
256256
* This type gets generated from the values of {@linkcode bit4Colors}.
257257
*/
258-
export type Bit8Color = ValuesFromObject<typeof bit8Colors>;
258+
export type Bit8ColorValue = ValuesFromObject<typeof bit8Colors>;

src/ansi/control/all_controls.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import c0Controls, { C0Control } from "./c0_controls.ts";
2-
import c1Controls, { C1Control } from "./c1_controls.ts";
1+
import c0Controls, { C0ControlValue } from "./c0_controls.ts";
2+
import c1Controls, { C1ControlValue } from "./c1_controls.ts";
33

44
/**
55
* This object contains all ANSI control codes.
@@ -14,4 +14,4 @@ const allControls = {
1414

1515
export default allControls;
1616

17-
export type AllControl = C0Control | C1Control;
17+
export type AllControl = C0ControlValue | C1ControlValue;

src/ansi/control/c0_controls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ export default c0Controls;
8383
/**
8484
* This type gets generated from the values of {@linkcode c0Controls}.
8585
*/
86-
export type C0Control = ValuesFromObject<typeof c0Controls>;
86+
export type C0ControlValue = ValuesFromObject<typeof c0Controls>;
8787

src/ansi/control/c1_controls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ export default c1Controls;
7979
/**
8080
* This type gets generated from the values of {@linkcode c1Controls}.
8181
*/
82-
export type C1Control = ValuesFromObject<typeof c1Controls>;
82+
export type C1ControlValue = ValuesFromObject<typeof c1Controls>;
8383

src/ansi/mod.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import bit4Colors from "./color/bit4_colors.ts";
55
import bit8Colors from "./color/bit8_colors.ts";
66
import formats from "./format/format.ts";
77

8-
import { C0Control } from "./control/c0_controls.ts";
9-
import { C1Control } from "./control/c1_controls.ts";
8+
import { C0ControlValue } from "./control/c0_controls.ts";
9+
import { C1ControlValue } from "./control/c1_controls.ts";
1010
import { AllControl } from "./control/all_controls.ts";
11-
import { Bit4Color } from "./color/bit4_colors.ts";
12-
import { Bit8Color } from "./color/bit8_colors.ts";
11+
import { Bit4ColorValue } from "./color/bit4_colors.ts";
12+
import { Bit8ColorValue } from "./color/bit8_colors.ts";
1313
import { Format } from "./format/format.ts";
1414

1515
export {
@@ -22,10 +22,10 @@ export {
2222
}
2323

2424
export type {
25-
C0Control,
26-
C1Control,
25+
C0ControlValue,
26+
C1ControlValue,
2727
AllControl,
28-
Bit4Color,
29-
Bit8Color,
28+
Bit4ColorValue,
29+
Bit8ColorValue,
3030
Format
3131
}

0 commit comments

Comments
 (0)