@graphql-codegen/typescript 3.0.3-alpha-20230321172845-6a733d607 → 3.0.3-alpha-20230321174405-9e225d39d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/visitor.js +1 -1
- package/esm/visitor.js +1 -1
- package/package.json +3 -3
- package/typings/visitor.d.cts +1 -1
- package/typings/visitor.d.ts +1 -1
package/cjs/visitor.js
CHANGED
|
@@ -9,7 +9,7 @@ const typescript_variables_to_object_js_1 = require("./typescript-variables-to-o
|
|
|
9
9
|
exports.EXACT_SIGNATURE = `type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };`;
|
|
10
10
|
exports.MAKE_OPTIONAL_SIGNATURE = `type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };`;
|
|
11
11
|
exports.MAKE_MAYBE_SIGNATURE = `type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };`;
|
|
12
|
-
exports.MAKE_EMPTY_SIGNATURE = `type MakeEmpty<T extends
|
|
12
|
+
exports.MAKE_EMPTY_SIGNATURE = `type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };`;
|
|
13
13
|
class TsVisitor extends visitor_plugin_common_1.BaseTypesVisitor {
|
|
14
14
|
constructor(schema, pluginConfig, additionalConfig = {}) {
|
|
15
15
|
super(schema, pluginConfig, {
|
package/esm/visitor.js
CHANGED
|
@@ -5,7 +5,7 @@ import { TypeScriptOperationVariablesToObject } from './typescript-variables-to-
|
|
|
5
5
|
export const EXACT_SIGNATURE = `type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };`;
|
|
6
6
|
export const MAKE_OPTIONAL_SIGNATURE = `type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };`;
|
|
7
7
|
export const MAKE_MAYBE_SIGNATURE = `type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };`;
|
|
8
|
-
export const MAKE_EMPTY_SIGNATURE = `type MakeEmpty<T extends
|
|
8
|
+
export const MAKE_EMPTY_SIGNATURE = `type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };`;
|
|
9
9
|
export class TsVisitor extends BaseTypesVisitor {
|
|
10
10
|
constructor(schema, pluginConfig, additionalConfig = {}) {
|
|
11
11
|
super(schema, pluginConfig, {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript",
|
|
3
|
-
"version": "3.0.3-alpha-
|
|
3
|
+
"version": "3.0.3-alpha-20230321174405-9e225d39d",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating TypeScript types",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "4.2.0-alpha-
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "4.2.0-alpha-20230321174405-9e225d39d",
|
|
10
10
|
"@graphql-codegen/schema-ast": "^3.0.1",
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "3.1.0-alpha-
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "3.1.0-alpha-20230321174405-9e225d39d",
|
|
12
12
|
"auto-bind": "~4.0.0",
|
|
13
13
|
"tslib": "~2.5.0"
|
|
14
14
|
},
|
package/typings/visitor.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ export interface TypeScriptPluginParsedConfig extends ParsedTypesConfig {
|
|
|
20
20
|
export declare const EXACT_SIGNATURE = "type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };";
|
|
21
21
|
export declare const MAKE_OPTIONAL_SIGNATURE = "type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };";
|
|
22
22
|
export declare const MAKE_MAYBE_SIGNATURE = "type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };";
|
|
23
|
-
export declare const MAKE_EMPTY_SIGNATURE = "type MakeEmpty<T extends
|
|
23
|
+
export declare const MAKE_EMPTY_SIGNATURE = "type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };";
|
|
24
24
|
export declare class TsVisitor<TRawConfig extends TypeScriptPluginConfig = TypeScriptPluginConfig, TParsedConfig extends TypeScriptPluginParsedConfig = TypeScriptPluginParsedConfig> extends BaseTypesVisitor<TRawConfig, TParsedConfig> {
|
|
25
25
|
constructor(schema: GraphQLSchema, pluginConfig: TRawConfig, additionalConfig?: Partial<TParsedConfig>);
|
|
26
26
|
protected _getTypeForNode(node: NamedTypeNode): string;
|
package/typings/visitor.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface TypeScriptPluginParsedConfig extends ParsedTypesConfig {
|
|
|
20
20
|
export declare const EXACT_SIGNATURE = "type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };";
|
|
21
21
|
export declare const MAKE_OPTIONAL_SIGNATURE = "type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };";
|
|
22
22
|
export declare const MAKE_MAYBE_SIGNATURE = "type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };";
|
|
23
|
-
export declare const MAKE_EMPTY_SIGNATURE = "type MakeEmpty<T extends
|
|
23
|
+
export declare const MAKE_EMPTY_SIGNATURE = "type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };";
|
|
24
24
|
export declare class TsVisitor<TRawConfig extends TypeScriptPluginConfig = TypeScriptPluginConfig, TParsedConfig extends TypeScriptPluginParsedConfig = TypeScriptPluginParsedConfig> extends BaseTypesVisitor<TRawConfig, TParsedConfig> {
|
|
25
25
|
constructor(schema: GraphQLSchema, pluginConfig: TRawConfig, additionalConfig?: Partial<TParsedConfig>);
|
|
26
26
|
protected _getTypeForNode(node: NamedTypeNode): string;
|