Skip to content

Commit bb8d662

Browse files
committed
Fix the build error
1 parent 13f5125 commit bb8d662

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/scripts/build/cssToTs/colorDecisions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ type Variant = typeof variants[number];
2222
export type ParsedColorDecisionName = {
2323
context: Context;
2424
usage: string; //default alt contrast altOverlap contrastRaised
25-
variant: Variant | undefined;
25+
variant?: Variant;
2626
colorName: string; // "grey" "blueFrance"
27-
state: State | undefined;
27+
state?: State;
2828
};
2929

3030
export function createParseColorDecisionName(rawCssCode: string) {

src/scripts/build/cssToTs/colorOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type State = typeof states[number];
2121

2222
export type BrightnessIndex = {
2323
value: number;
24-
variant: Variant | undefined;
24+
variant?: Variant;
2525
};
2626

2727
export type ParsedColorOptionName =
@@ -31,7 +31,7 @@ export type ParsedColorOptionName =
3131
export declare namespace ParsedColorOptionName {
3232
type Common = {
3333
colorName: string;
34-
state: State | undefined;
34+
state?: State;
3535
};
3636

3737
/** Same value in dark and light mode */

0 commit comments

Comments
 (0)