Skip to content

Commit 408290e

Browse files
authored
fix(curriculum): improve lang type in file-handler script (freeCodeCamp#64789)
1 parent b53d715 commit 408290e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

curriculum/src/file-handler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { fileURLToPath } from 'node:url';
66
import debug from 'debug';
77

88
import type { Chapter } from '../../shared-dist/config/chapters.js';
9-
import type { SuperBlocks } from '../../shared-dist/config/curriculum.js';
9+
import type {
10+
SuperBlocks,
11+
ChallengeLang
12+
} from '../../shared-dist/config/curriculum.js';
1013
import type { Certification } from '../../shared-dist/config/certification-settings.js';
1114

1215
const log = debug('fcc:file-handler');
@@ -153,7 +156,7 @@ export type Challenge = {
153156
missing?: boolean;
154157
challengeFiles?: ChallengeFile[];
155158
solutions?: ChallengeFile[][];
156-
lang?: string;
159+
lang?: ChallengeLang;
157160
};
158161

159162
export interface BlockStructure {

0 commit comments

Comments
 (0)