@pothos/core
Advanced tools
Comparing version 3.5.1 to 3.6.0
# Change Log | ||
## 3.6.0 | ||
### Minor Changes | ||
- a8e31a70: Improve user experience when srtict mode is disabled | ||
## 3.5.1 | ||
@@ -4,0 +10,0 @@ |
import { GraphQLDirective } from 'graphql'; | ||
import { PluginConstructorMap } from '../..'; | ||
import { IsStrictMode, PluginConstructorMap } from '../..'; | ||
import { MergedScalars, SchemaTypes } from '..'; | ||
@@ -10,2 +10,3 @@ declare global { | ||
defaultInputFieldRequiredness: false extends Types['DefaultInputFieldRequiredness'] ? never : Types['DefaultInputFieldRequiredness']; | ||
notStrict: IsStrictMode extends true ? never : 'Pothos may not work correctly when strict mode is not enabled in tsconfig.json'; | ||
} | ||
@@ -12,0 +13,0 @@ interface BuildSchemaOptions<Types extends SchemaTypes> { |
@@ -58,2 +58,5 @@ export declare type MaybePromise<T> = Promise<T> | T; | ||
} : T; | ||
export declare type IsStrictMode = undefined extends { | ||
t: 1; | ||
}['t'] ? false : true; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "@pothos/core", | ||
"version": "3.5.1", | ||
"version": "3.6.0", | ||
"description": "Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-interface */ | ||
import { GraphQLDirective } from 'graphql'; | ||
import { PluginConstructorMap } from '../..'; | ||
import { IsStrictMode, PluginConstructorMap } from '../..'; | ||
@@ -17,2 +17,5 @@ import { MergedScalars, SchemaTypes } from '..'; | ||
: Types['DefaultInputFieldRequiredness']; | ||
notStrict: IsStrictMode extends true | ||
? never | ||
: 'Pothos may not work correctly when strict mode is not enabled in tsconfig.json'; | ||
} | ||
@@ -19,0 +22,0 @@ |
@@ -52,2 +52,3 @@ export interface SchemaTypes extends PothosSchemaTypes.UserSchemaTypes { | ||
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents | ||
export type ScalarName<Types extends SchemaTypes> = string & | ||
@@ -54,0 +55,0 @@ (BaseScalarNames | keyof Types['Scalars']); |
@@ -88,1 +88,3 @@ export type MaybePromise<T> = Promise<T> | T; | ||
: T; | ||
export type IsStrictMode = undefined extends { t: 1 }['t'] ? false : true; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1178457
11528