diff --git a/utils/app/codeblock.ts b/utils/app/codeblock.ts index b76b206..d28c8aa 100644 --- a/utils/app/codeblock.ts +++ b/utils/app/codeblock.ts @@ -29,7 +29,7 @@ export const programmingLanguages: languageMap = { // add more file extensions here, make sure the key is same as language prop in CodeBlock.tsx component }; -export const generateRandomString = (length: Number, lowercase = false) => { +export const generateRandomString = (length: number, lowercase = false) => { const chars = 'ABCDEFGHJKLMNPQRSTUVWXY3456789'; // excluding similar looking characters like Z, 2, I, 1, O, 0 let result = ''; for (let i = 0; i < length; i++) {