Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { var1, var2 } from "../utils/...";
  2.  
  3. export const fn1 = async (par1) => { ... };
  4. export const fn2 = async (par2) => { ... };
  5. export const fn3 = async (par3) => { //This could be used outside and inside this file
  6.     let someVar = await someMysqlstatement/; // ...
  7. };
  8. export const fn4 = async (par1) => { //Would like to use fn3 here
  9.     let someVar2 await f3(par3);
  10.     // Works −−−−−−−−−−^
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement