Files
freeCodeCamp/tools/daily-challenges/types.ts
2025-06-18 20:29:49 +02:00

30 lines
440 B
TypeScript

export type QueryResult = {
data: {
allChallengeNode: {
edges: {
node: {
challenge: Challenge;
};
}[];
};
};
};
export type Challenge = {
id: string;
title: string;
date: Date;
description: string;
instructions?: string;
fields: {
tests: {
testString: string;
text: string;
}[];
};
challengeFiles: {
contents: string;
filekey: string;
}[];
};