Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

chore(workspace): Enable TypeScript's isolatedModules compiler option (#2840)

authored by kitten.sh and committed by

GitHub 03a76a0e 72e0ca22

+19 -18
+2 -1
exchanges/auth/src/index.ts
··· 1 - export { authExchange, AuthConfig } from './authExchange'; 1 + export { authExchange } from './authExchange'; 2 + export type { AuthConfig } from './authExchange';
+2 -1
exchanges/context/src/index.ts
··· 1 - export { contextExchange, ContextExchangeArgs } from './context'; 1 + export { contextExchange } from './context'; 2 + export type { ContextExchangeArgs } from './context';
+2 -1
exchanges/execute/src/index.ts
··· 1 - export { executeExchange, ExecuteExchangeArgs } from './execute'; 1 + export { executeExchange } from './execute'; 2 + export type { ExecuteExchangeArgs } from './execute';
+2 -1
exchanges/retry/src/index.ts
··· 1 - export { retryExchange, RetryExchangeOptions } from './retryExchange'; 1 + export { retryExchange } from './retryExchange'; 2 + export type { RetryExchangeOptions } from './retryExchange';
+1 -1
packages/core/src/types.ts
··· 1 - import { GraphQLError, DocumentNode } from 'graphql'; 1 + import type { GraphQLError, DocumentNode } from 'graphql'; 2 2 import { Source } from 'wonka'; 3 3 import { Client } from './client'; 4 4 import { CombinedError } from './utils/error';
+9 -13
packages/vue-urql/src/index.ts
··· 3 3 export * from './useClientHandle'; 4 4 export { install, provideClient } from './useClient'; 5 5 6 - export { 7 - useQuery, 8 - UseQueryArgs, 9 - UseQueryResponse, 10 - UseQueryState, 11 - } from './useQuery'; 6 + export { useQuery } from './useQuery'; 7 + 8 + export type { UseQueryArgs, UseQueryResponse, UseQueryState } from './useQuery'; 12 9 13 - export { 14 - useSubscription, 10 + export { useSubscription } from './useSubscription'; 11 + 12 + export type { 15 13 UseSubscriptionArgs, 16 14 UseSubscriptionResponse, 17 15 UseSubscriptionState, ··· 19 17 SubscriptionHandler, 20 18 } from './useSubscription'; 21 19 22 - export { 23 - useMutation, 24 - UseMutationResponse, 25 - UseMutationState, 26 - } from './useMutation'; 20 + export { useMutation } from './useMutation'; 21 + 22 + export type { UseMutationResponse, UseMutationState } from './useMutation'; 27 23 28 24 import { install } from './useClient'; 29 25
+1
tsconfig.json
··· 10 10 "@urql/*": ["packages/*-urql/src", "packages/*/src"] 11 11 }, 12 12 "esModuleInterop": true, 13 + "isolatedModules": true, 13 14 "forceConsistentCasingInFileNames": true, 14 15 "noUnusedLocals": true, 15 16 "noEmit": true,