refactor: mollify TypeScript
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
7d0760c98f
commit
01b354f0d1
@@ -35,6 +35,14 @@ type Meta = {
|
||||
challengeOrder: string[][];
|
||||
};
|
||||
|
||||
interface CreateProjectArgs {
|
||||
superBlock: SuperBlocks;
|
||||
block: string;
|
||||
helpCategory: string;
|
||||
order: number;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
async function createProject(
|
||||
superBlock: SuperBlocks,
|
||||
block: string,
|
||||
@@ -264,8 +272,9 @@ prompt([
|
||||
}
|
||||
}
|
||||
])
|
||||
.then(({ superBlock, block, title, helpCategory, order }) =>
|
||||
createProject(superBlock, block, helpCategory, order, title)
|
||||
.then(
|
||||
({ superBlock, block, title, helpCategory, order }: CreateProjectArgs) =>
|
||||
createProject(superBlock, block, helpCategory, order, title)
|
||||
)
|
||||
.then(() =>
|
||||
console.log(
|
||||
|
@@ -59,7 +59,7 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
|
||||
searchKeys,
|
||||
donationKeys
|
||||
);
|
||||
const receivedvariables = Object.keys(env);
|
||||
const receivedvariables = Object.keys(env as Record<string, unknown>);
|
||||
expectedVariables.sort();
|
||||
receivedvariables.sort();
|
||||
if (expectedVariables.length !== receivedvariables.length) {
|
||||
|
Reference in New Issue
Block a user