Comparing version 3.0.0-alpha-3e8df1a7.0 to 3.0.0-alpha-455c7aa1.0
@@ -63,7 +63,8 @@ import type { BaseGeneratedSchema, FetchOptions } from '.'; | ||
export type CreateResolverFn<TSchema extends BaseGeneratedSchema> = (options?: ResolveOptions) => ResolverParts<TSchema>; | ||
export type ResolveFn<TSchema extends BaseGeneratedSchema> = <TData extends Record<string, unknown> = Record<string, unknown>>(fn: DataFn<TSchema>, options?: ResolveOptions) => Promise<TData>; | ||
export type SubscribeFn<TSchema extends BaseGeneratedSchema> = <TData extends Record<string, unknown> = Record<string, unknown>>(fn: DataFn<TSchema>, options?: SubscribeOptions) => AsyncGenerator<TData, void, unknown> & { | ||
export type ResolveFn<TSchema extends BaseGeneratedSchema> = <TData extends unknown = unknown>(fn: DataFn<TSchema, TData>, options?: ResolveOptions) => Promise<DataResult<TData>>; | ||
export type SubscribeFn<TSchema extends BaseGeneratedSchema> = <TData extends unknown = unknown>(fn: DataFn<TSchema, TData>, options?: SubscribeOptions) => AsyncGenerator<DataResult<TData>, void, unknown> & { | ||
unsubscribe: Unsubscribe; | ||
}; | ||
export type DataFn<TSchema> = (schema: TSchema) => void; | ||
export type DataFn<TSchema, TResult = unknown> = (schema: TSchema) => TResult; | ||
export type DataResult<TData = unknown> = TData extends undefined ? TData : TData extends void ? unknown : TData; | ||
export type ResolveOptions = { | ||
@@ -70,0 +71,0 @@ /** |
{ | ||
"name": "gqty", | ||
"version": "3.0.0-alpha-3e8df1a7.0", | ||
"version": "3.0.0-alpha-455c7aa1.0", | ||
"description": "gqty client without queries", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
273658
7847