@eddeee888/gcg-typescript-resolver-files
Version:
This [GraphQL Code Generator](https://www.the-guild.dev/graphql/codegen) plugin creates resolvers given GraphQL schema.
12 lines (11 loc) • 523 B
TypeScript
import type { AddPluginConfig } from '@graphql-codegen/add/typings/config';
/**
* normalizeAddConfigPath
*
* Function to turn the add config keys into normalized path a.k.a. path from baseOutputDir
* This helps us detects targeted file being given in different formats e.g. './types.generated.ts' vs 'types.generated.ts'
*/
export declare const normalizeAddConfigPath: ({ add, baseOutputDir, }: {
add?: Record<string, AddPluginConfig>;
baseOutputDir: string;
}) => Record<string, AddPluginConfig> | undefined;