Skip to content

Commit

Permalink
Update module setting in tsconfig.json and refactor code in index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dvque committed Jan 31, 2024
1 parent fb501d6 commit dfb54ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ import { fetchUserProfile } from "./fetch";

const midudevId = '8242141302';

(async () => {
const response = await fetchUserProfile({ userId: midudevId });
console.log(response);
})();
const response = await fetchUserProfile({ userId: midudevId });
console.log(response);
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"module": "esnext",
"esModuleInterop": true,
"strict": true,
"jsx": "react-jsx",
Expand Down

0 comments on commit dfb54ef

Please sign in to comment.