mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
30 lines
440 B
TypeScript
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;
|
|
}[];
|
|
};
|