corede-common
Advanced tools
Comparing version 5.1.33 to 5.1.34
import { IBaseGraphqlError } from "../error/base-graphql-error"; | ||
import { IBaseGraphqlRequest } from "../request/base-request.interface"; | ||
export interface IBaseGraphqlResponse<TInput, TResult> { | ||
export interface IBaseGraphqlResponse<TResult, TInput = any> { | ||
errors?: Array<IGraphQLFormattedError<TInput>>; | ||
data: TResult | null; | ||
} | ||
export interface IGraphQLFormattedError<TInput> { | ||
export interface IGraphQLFormattedError<TInput = any> { | ||
readonly message: string; | ||
readonly locations?: ReadonlyArray<ISourceLocation>; | ||
readonly path?: ReadonlyArray<string | number>; | ||
readonly extensions?: { | ||
locations?: ReadonlyArray<ISourceLocation>; | ||
path?: ReadonlyArray<string | number>; | ||
extensions?: { | ||
[key: string]: unknown; | ||
@@ -13,0 +13,0 @@ custom?: IBaseGraphqlError; |
{ | ||
"name": "corede-common", | ||
"version": "5.1.33", | ||
"version": "5.1.34", | ||
"description": "The common utility functions, interfaces, types etc.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
import { IBaseGraphqlError } from "../error/base-graphql-error"; | ||
import { IBaseGraphqlRequest } from "../request/base-request.interface"; | ||
export interface IBaseGraphqlResponse<TInput, TResult> { | ||
export interface IBaseGraphqlResponse<TResult, TInput = any> { | ||
errors?: Array<IGraphQLFormattedError<TInput>>; | ||
@@ -9,7 +9,7 @@ data: TResult | null; | ||
export interface IGraphQLFormattedError<TInput> { | ||
export interface IGraphQLFormattedError<TInput = any> { | ||
readonly message: string; | ||
readonly locations?: ReadonlyArray<ISourceLocation>; | ||
readonly path?: ReadonlyArray<string | number>; | ||
readonly extensions?: { | ||
locations?: ReadonlyArray<ISourceLocation>; | ||
path?: ReadonlyArray<string | number>; | ||
extensions?: { | ||
[key: string]: unknown; | ||
@@ -16,0 +16,0 @@ custom?: IBaseGraphqlError; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
353376