Skip to content

Commit

Permalink
Change ts targe to es2017
Browse files Browse the repository at this point in the history
  • Loading branch information
sazanrjb committed Dec 18, 2023
1 parent dafbe3b commit 37a8bc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { HOUR, SettingsData } from '@/constants';
import { SettingResponse } from '@/types/setting';
import AutoResponder from '@/app/components/AutoResponder';
import { SettingService } from '@/app/api/settings/services/setting.service';
import { Company, CopilotAPI } from '@/utils/copilotApiUtils';
import { ClientResponse, MeResponse } from '@/types/common';
import { CopilotAPI } from '@/utils/copilotApiUtils';
import { ClientResponse, CompanyResponse, MeResponse } from '@/types/common';
import { z } from 'zod';

type SearchParams = { [key: string]: string | string[] | undefined };
Expand All @@ -18,7 +18,7 @@ async function getContent(searchParams: SearchParams) {
}

const copilotAPI = new CopilotAPI(z.string().parse(searchParams.token));
const result: { client?: ClientResponse; company?: Company; me?: MeResponse } = {};
const result: { client?: ClientResponse; company?: CompanyResponse; me?: MeResponse } = {};

result.me = await copilotAPI.me();

Expand Down
6 changes: 0 additions & 6 deletions src/utils/copilotApiUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ import {
MeResponseSchema,
} from '@/types/common';

export type Company = {
id: string;
name: string;
iconImageUrl: string;
};

export class CopilotAPI {
copilot: typeof Copilot;

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand Down

0 comments on commit 37a8bc6

Please sign in to comment.