UNPKG

@graphql-mesh/cli

Version:
22 lines (21 loc) 1.03 kB
import { Logger, RawSourceOutput, YamlConfig } from '@graphql-mesh/types'; import { GraphQLSchema } from 'graphql'; import { Source } from '@graphql-tools/utils'; import ts from 'typescript'; import { GraphQLMeshCLIParams } from '..'; export declare function generateTsArtifacts({ unifiedSchema, rawSources, mergerType, documents, flattenTypes, importedModulesSet, baseDir, meshConfigImportCodes, meshConfigCodes, logger, sdkConfig, fileType, codegenConfig, }: { unifiedSchema: GraphQLSchema; rawSources: readonly RawSourceOutput[]; mergerType: string; documents: Source[]; flattenTypes: boolean; importedModulesSet: Set<string>; baseDir: string; meshConfigImportCodes: Set<string>; meshConfigCodes: Set<string>; logger: Logger; sdkConfig: YamlConfig.SDKConfig; fileType: 'ts' | 'json' | 'js'; codegenConfig: any; }, cliParams: GraphQLMeshCLIParams): Promise<void>; export declare function compileTS(tsFilePath: string, module: ts.ModuleKind, outputFilePaths: string[]): void;