fix: update formating per prettier

This commit is contained in:
Mrugesh Mohapatra
2023-01-08 14:25:07 +05:30
committed by Mrugesh Mohapatra
parent e0e8356d56
commit c087ad3dca
3 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ export type MarkdownRemark = {
superBlock: SuperBlocks;
// TODO: make enum like superBlock
certification: string;
title: typeof certMap[number]['title'];
title: (typeof certMap)[number]['title'];
};
headings: [
{

View File

@@ -727,7 +727,7 @@ function getJavaScriptAlgoPath(project: string) {
}
const titles = certMap.map(({ title }) => title);
type Title = typeof titles[number];
type Title = (typeof titles)[number];
const legacyProjectMap: Partial<Record<Title, unknown>> = {};
const projectMap: Partial<Record<Title, unknown>> = {};

View File

@@ -34,7 +34,7 @@ interface CertChallengeProps {
currentCerts: Steps['currentCerts'];
superBlock: SuperBlocks;
t: TFunction;
title: typeof certMap[number]['title'];
title: (typeof certMap)[number]['title'];
user: User;
verifyCert: typeof verifyCert;
}