<commit_before>import typescriptConfig from 'graphql-codegen-typescript-template';

import * as components from './components.handlebars';
import { gql as gqlHelper } from './helpers/gql';
import gql from 'graphql-tag';
import { generateFragments } from './helpers/generate-fragments';
import { importNgModules } from './helpers/import-ng-modules';
import { providedIn } from './helpers/provided-in';

typescriptConfig.templates['documents'] += components;
typescriptConfig.customHelpers.gql = gqlHelper;
typescriptConfig.customHelpers.generateFragments = generateFragments;
typescriptConfig.customHelpers.importNgModules = importNgModules;
typescriptConfig.customHelpers.providedIn = providedIn;
typescriptConfig.addToSchema = gql`
  directive @NgModule(module: String!) on OBJECT
`;

export { typescriptConfig as config };<commit_msg>Allow to use @NgModule on FIELD (#637)<commit_after>import typescriptConfig from 'graphql-codegen-typescript-template';

import * as components from './components.handlebars';
import { gql as gqlHelper } from './helpers/gql';
import gql from 'graphql-tag';
import { generateFragments } from './helpers/generate-fragments';
import { importNgModules } from './helpers/import-ng-modules';
import { providedIn } from './helpers/provided-in';

typescriptConfig.templates['documents'] += components;
typescriptConfig.customHelpers.gql = gqlHelper;
typescriptConfig.customHelpers.generateFragments = generateFragments;
typescriptConfig.customHelpers.importNgModules = importNgModules;
typescriptConfig.customHelpers.providedIn = providedIn;
typescriptConfig.addToSchema = gql`
  directive @NgModule(module: String!) on OBJECT | FIELD
`;

export { typescriptConfig as config };
{'fraction_non_alphanumeric': 0.11202346041055719, 'fraction_numerical': 0.0017595307917888563, 'mean_word_length': 6.650224215246637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6712138', 'n_tokens_mistral': 491, 'n_tokens_neox': 504, 'n_words': 111}