Skip to content

Commit b2553c1

Browse files
committed
Clarify indexes in CharData and IColorRGB
Part of #5740
1 parent f4166a8 commit b2553c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/Types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ export interface ICharset {
101101
[key: string]: string | undefined;
102102
}
103103

104-
export type CharData = [number, string, number, number];
104+
export type CharData = [attrIndex: number, charIndex: string, width: number, code: number];
105105

106106
export interface IColor {
107107
readonly css: string;
108108
readonly rgba: number; // 32-bit int with rgba in each byte
109109
}
110-
export type IColorRGB = [number, number, number];
110+
export type IColorRGB = [red: number, green: number, blue: number];
111111

112112
export interface IExtendedAttrs {
113113
ext: number;

0 commit comments

Comments
 (0)