🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

graphql-codegen-typescript-common

Package Overview
Dependencies
Maintainers
1
Versions
1079
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-codegen-typescript-common - npm Package Compare versions

Comparing version

to
0.14.0-alpha.0c572152

5

dist/helpers.d.ts
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;
export declare function getResultType(type: Field, options: Handlebars.HelperOptions, convert: any, skipConversion?: boolean): any;
export declare function getFieldType(field: Field, realType: string, options: Handlebars.HelperOptions): string;
export declare function getOptionals(type: Field, options: Handlebars.HelperOptions): "" | "?";
export declare const getType: (convert: Function) => (type: Field, options: Handlebars.HelperOptions) => "" | SafeString;
export declare function convertedType(type: Field, options: Handlebars.HelperOptions, convert: any, skipConversion?: boolean): string;

9

dist/index.d.ts

@@ -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.13.0-alpha.a51638ed",
"version": "0.14.0-alpha.0c572152",
"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,8 +19,7 @@ "dependencies": {

"devDependencies": {
"@types/change-case": "2.3.1",
"codegen-templates-scripts": "0.13.0-alpha.a51638ed",
"codegen-templates-scripts": "0.14.0-alpha.0c572152",
"graphql": "14.0.2",
"graphql-codegen-core": "0.13.0-alpha.a51638ed",
"graphql-codegen-plugin-handlebars-helpers": "0.13.0-alpha.a51638ed",
"graphql-codegen-plugin-helpers": "0.13.0-alpha.a51638ed"
"graphql-codegen-core": "0.14.0-alpha.0c572152",
"graphql-codegen-plugin-handlebars-helpers": "0.14.0-alpha.0c572152",
"graphql-codegen-plugin-helpers": "0.14.0-alpha.0c572152"
},

@@ -26,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