浏览代码

删除无用代码;类型报错修改

fogwind 4 天之前
父节点
当前提交
2bd5a73602
共有 4 个文件被更改,包括 3 次插入43 次删除
  1. 0 5
      @types/graphql.d.ts
  2. 0 36
      @types/next-auth.d.ts
  3. 2 2
      src/graphql/currency/query/GetCurrencies.ts
  4. 1 0
      src/providers/LiveChatProvider.tsx

+ 0 - 5
@types/graphql.d.ts

@@ -1,5 +0,0 @@
-declare module '*.graphql' {
-  import { DocumentNode } from 'graphql';
-  const Schema: DocumentNode;
-  export = Schema;
-}

+ 0 - 36
@types/next-auth.d.ts

@@ -1,36 +0,0 @@
-import { DefaultSession } from 'next-auth';
-
-declare module 'next-auth' {
-  /**
-   * Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
-   */
-  interface Session {
-    user: {
-      id: string;
-      firstname?: string;
-      lastname?: string;
-      token?: string;
-      accessToken?: string;
-      apiToken?: string;
-      role?: string;
-    } & DefaultSession['user'];
-  }
-
-  interface User {
-    id: string;
-    accessToken?: string;
-    apiToken?: string;
-    role?: string;
-    tokenType?: string;
-    expiresIn?: number;
-  }
-}
-
-declare module 'next-auth/jwt' {
-  interface JWT {
-    accessToken?: string;
-    apiToken?: string;
-    role?: string;
-    id?: string;
-  }
-}

+ 2 - 2
src/graphql/currency/query/GetCurrencies.ts

@@ -1,5 +1,5 @@
-import { gql,TypedDocumentNode } from "@apollo/client";
-import { CurrenciesData } from "@/types/currency/type";
+import { gql,type TypedDocumentNode } from "@apollo/client";
+import type { CurrenciesData } from "@/types/currency/type";
 
 
 export const GET_CURRENCIES: TypedDocumentNode<CurrenciesData> = gql`

+ 1 - 0
src/providers/LiveChatProvider.tsx

@@ -83,6 +83,7 @@ export function LiveChatProvider({
             }}
         >
             {children}
+            {/**19925053 */}
             <LiveChatWidget
                 license="8982890"
                 visibility={visibility}