From 2af7ea9f0f6febbe6f969df1b3b42b52569e79ac Mon Sep 17 00:00:00 2001 From: Carey Gumaer Date: Tue, 11 Feb 2025 18:19:29 -0500 Subject: [PATCH] update typescript config --- tsconfig.json | 6 +++--- www/assets/js/hooks/user.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 5def90456..da9bc32d5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,14 @@ { "compilerOptions": { "incremental": true, - "target": "es5", + "target": "es6", "lib": [ "es2020", "dom" ], "jsx": "react", - "module": "ES2020", - "moduleResolution": "node", + "module": "NodeNext", + "moduleResolution": "nodenext", "typeRoots": [ "node_modules/@types", "base-theme/assets/types" diff --git a/www/assets/js/hooks/user.ts b/www/assets/js/hooks/user.ts index 3ecc0fa04..adae6a3a7 100644 --- a/www/assets/js/hooks/user.ts +++ b/www/assets/js/hooks/user.ts @@ -1,5 +1,5 @@ import { useQuery } from "@tanstack/react-query" -import { Configuration, User as UserApi, UsersApi } from "@mitodl/open-api-axios/dist/esm/v0" +import { Configuration, User as UserApi, UsersApi } from "@mitodl/open-api-axios/v0" interface User extends Partial { is_authenticated: boolean