This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"recommendations": [ | |
"bradlc.vscode-tailwindcss", | |
"eamodio.gitlens", | |
"dbaeumer.vscode-eslint", | |
"usernamehw.errorlens", | |
"vscode-icons-team.vscode-icons", | |
"mintlify.document", | |
"esbenp.prettier-vscode", | |
"mikestead.dotenv", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function httpreq(fn: () => Promise<any>): Promise<[any, any]> { | |
try { | |
const res = await fn() | |
return [res, null] | |
} catch(err) { | |
return [null, err] | |
} | |
} | |