Skip to content

Commit

Permalink
use export type when exporting only types
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Sep 30, 2024
1 parent 78d74ff commit f592b65
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/json-machete/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export * from './dereferenceObject.js';
export * from './healJSONSchema.js';
export * from './referenceJSONSchema.js';
export * from './visitJSONSchema.js';
export * from './types.js';
export type * from './types.js';
export * from './healUntitledDefinitions.js';
2 changes: 1 addition & 1 deletion packages/legacy/runtime/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './get-mesh.js';
export * from './types.js';
export type * from './types.js';
export * from './useSubschema.js';
export * from './in-context-sdk.js';
2 changes: 1 addition & 1 deletion packages/loaders/json-schema/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export * from './loadGraphQLSchemaFromJSONSchemas.js';
export * from './getComposerFromJSONSchema.js';
export * from './getDereferencedJSONSchemaFromOperations.js';
export * from './getGraphQLSchemaFromDereferencedJSONSchema.js';
export * from './types.js';
export type * from './types.js';

export function loadJSONSchemaSubgraph(name: string, options: JSONSchemaLoaderOptions) {
return (ctx: { fetch: MeshFetch; cwd: string }) => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/soap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defaultImportFn, DefaultLogger, readFileOrUrl } from '@graphql-mesh/uti
import { SOAPLoader } from './SOAPLoader.js';

export * from './SOAPLoader.js';
export * from './types.js';
export type * from './types.js';
export * from '@graphql-mesh/transport-soap';

export interface SOAPSubgraphLoaderOptions {
Expand Down
2 changes: 1 addition & 1 deletion packages/serve-runtime/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './createGatewayRuntime.js';
export * from './types.js';
export type * from './types.js';
export * from './plugins/useCustomFetch.js';
export * from './plugins/useStaticFiles.js';
export * from './getProxyExecutor.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/transports/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { print, stripIgnoredCharacters, type DocumentNode } from 'graphql';
import { getDocumentString } from '@envelop/core';
import { memoize1 } from '@graphql-tools/utils';

export * from './types.js';
export type * from './types.js';
export * from './ObjMap.js';
export { createDefaultExecutor } from '@graphql-tools/delegate';
export { getDocumentString } from '@envelop/core';
Expand Down
2 changes: 1 addition & 1 deletion packages/transports/mysql/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getMySQLExecutor } from './execution.js';

export * from './execution.js';
export * from './parseEndpointUri.js';
export * from './types.js';
export type * from './types.js';

export default {
getSubgraphExecutor({ subgraph }) {
Expand Down
2 changes: 1 addition & 1 deletion packages/transports/thrift/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getThriftExecutor } from './execution.js';

export { getThriftExecutor };

export * from './types.js';
export type * from './types.js';

export default {
getSubgraphExecutor({ subgraph }) {
Expand Down

0 comments on commit f592b65

Please sign in to comment.