Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@envelop/types

Package Overview
Dependencies
Maintainers
1
Versions
629
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/types - npm Package Compare versions

Comparing version 0.5.0-alpha-728ec6f.0 to 1.0.0

2

context-types.d.ts

@@ -1,2 +0,2 @@

import { GetEnvelopedFn } from 'packages/core/src';
import { GetEnvelopedFn } from './get-enveloped';
import { Plugin } from './plugin';

@@ -3,0 +3,0 @@ import { Spread, TuplifyUnion, Unarray } from './utils';

@@ -1,3 +0,16 @@

import type { DocumentNode, GraphQLFieldResolver, GraphQLSchema, SubscriptionArgs, ExecutionResult } from 'graphql';
import type { DocumentNode, GraphQLFieldResolver, GraphQLSchema, SubscriptionArgs, ExecutionResult, ExecutionArgs, GraphQLTypeResolver } from 'graphql';
import type { Maybe, PromiseOrValue, AsyncIterableIteratorOrValue } from './utils';
export declare type PolymorphicExecuteArguments = [ExecutionArgs] | [
GraphQLSchema,
DocumentNode,
any,
any,
Maybe<{
[key: string]: any;
}>,
Maybe<string>,
Maybe<GraphQLFieldResolver<any, any>>,
Maybe<GraphQLTypeResolver<any, any>>
];
export declare type ExecuteFunction = (...args: PolymorphicExecuteArguments) => PromiseOrValue<AsyncIterableIteratorOrValue<ExecutionResult>>;
export declare type PolymorphicSubscribeArguments = [SubscriptionArgs] | [

@@ -4,0 +17,0 @@ GraphQLSchema,

@@ -1,5 +0,6 @@

import type { DocumentNode, execute, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql';
import type { DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql';
import { Maybe } from 'graphql/jsutils/Maybe';
import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue';
import { DefaultContext } from 'packages/core/src';
import { DefaultContext } from './context-types';
import { AsyncIterableIteratorOrValue, ExecuteFunction } from '@envelop/core';
import { SubscribeFunction } from './graphql';

@@ -108,3 +109,3 @@ import { Plugin } from './plugin';

};
export declare type OriginalExecuteFn = typeof execute;
export declare type OriginalExecuteFn = ExecuteFunction;
export declare type OnExecuteEventPayload<ContextType> = {

@@ -117,7 +118,17 @@ executeFn: OriginalExecuteFn;

};
export declare type OnExecuteDoneEventPayload = {
export declare type OnExecuteDoneHookResultOnNextHookPayload = {
result: ExecutionResult;
setResult: (newResult: ExecutionResult) => void;
};
export declare type OnExecuteDoneHook = (options: OnExecuteDoneEventPayload) => void;
export declare type OnExecuteDoneHookResultOnNextHook = (payload: OnExecuteDoneHookResultOnNextHookPayload) => void | Promise<void>;
export declare type OnExecuteDoneHookResultOnEndHook = () => void;
export declare type OnExecuteDoneHookResult = {
onNext?: OnExecuteDoneHookResultOnNextHook;
onEnd?: OnExecuteDoneHookResultOnEndHook;
};
export declare type OnExecuteDoneEventPayload = {
result: AsyncIterableIteratorOrValue<ExecutionResult>;
setResult: (newResult: AsyncIterableIteratorOrValue<ExecutionResult>) => void;
};
export declare type OnExecuteDoneHook = (options: OnExecuteDoneEventPayload) => void | OnExecuteDoneHookResult;
export declare type OnExecuteHookResult<ContextType> = {

@@ -124,0 +135,0 @@ onExecuteDone?: OnExecuteDoneHook;

{
"name": "@envelop/types",
"version": "0.5.0-alpha-728ec6f.0",
"version": "1.0.0",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc