UNPKG

@eddeee888/gcg-server-config

Version:

This library has the recommended default options used by the server preset `@eddeee888/gcg-typescript-resolver-files`.

14 lines 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defineConfig = void 0; const nativeScalarTypes = { ID: { input: 'string', output: 'string | number' }, }; const defineConfig = (config = {}) => { const configScalars = config.scalars || {}; return Object.assign(Object.assign({ enumsAsTypes: true, maybeValue: 'T | null | undefined' }, config), { scalars: typeof configScalars === 'string' ? configScalars : Object.assign(Object.assign({}, nativeScalarTypes), configScalars) }); }; exports.defineConfig = defineConfig; //# sourceMappingURL=defineConfig.js.map