graphql-codegen-typescript-common
Advanced tools
Comparing version
import { Field } from 'graphql-codegen-core'; | ||
import { SafeString } from 'handlebars'; | ||
import * as Handlebars from 'handlebars'; | ||
export declare function getScalarType(type: string, options: Handlebars.HelperOptions): any; | ||
export declare function getEnumValue(type: string, name: string, options: Handlebars.HelperOptions): any; | ||
@@ -4,0 +6,0 @@ export declare function getFieldType(field: Field, realType: string, options: Handlebars.HelperOptions): string; |
@@ -6,5 +6,12 @@ import { PluginFunction } from 'graphql-codegen-core'; | ||
namingConvention?: string; | ||
avoidOptionals?: boolean; | ||
constEnums?: boolean; | ||
enumsAsTypes?: boolean; | ||
immutableTypes?: boolean; | ||
interfacePrefix?: string; | ||
enums?: { | ||
[enumName: string]: { | ||
[valueName: string]: string; | ||
}; | ||
}; | ||
scalars?: { | ||
@@ -43,5 +50,5 @@ [scalarName: string]: string; | ||
}; | ||
convert: any; | ||
convert: (str: string) => string; | ||
scalars: any; | ||
}; | ||
export declare const plugin: PluginFunction<TypeScriptCommonConfig>; |
{ | ||
"name": "graphql-codegen-typescript-common", | ||
"version": "0.14.0-alpha.92ec3c00", | ||
"version": "0.14.0-alpha.a4fbd654", | ||
"description": "graphql-codegen-cli template for TypeScript typings for both client side and server side", | ||
@@ -10,3 +10,4 @@ "repository": "git@github.com:dotansimha/graphql-code-generator.git", | ||
"build": "codegen-templates-scripts build", | ||
"pretest": "yarn build" | ||
"pretest": "yarn build", | ||
"test": "codegen-templates-scripts test" | ||
}, | ||
@@ -18,7 +19,7 @@ "dependencies": { | ||
"devDependencies": { | ||
"codegen-templates-scripts": "0.14.0-alpha.92ec3c00", | ||
"codegen-templates-scripts": "0.14.0-alpha.a4fbd654", | ||
"graphql": "14.0.2", | ||
"graphql-codegen-core": "0.14.0-alpha.92ec3c00", | ||
"graphql-codegen-plugin-handlebars-helpers": "0.14.0-alpha.92ec3c00", | ||
"graphql-codegen-plugin-helpers": "0.14.0-alpha.92ec3c00" | ||
"graphql-codegen-core": "0.14.0-alpha.a4fbd654", | ||
"graphql-codegen-plugin-handlebars-helpers": "0.14.0-alpha.a4fbd654", | ||
"graphql-codegen-plugin-helpers": "0.14.0-alpha.a4fbd654" | ||
}, | ||
@@ -25,0 +26,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
-50%1089613
-8.53%10602
-6.75%