giraffeql 2.0.12 → 2.0.13
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/lib/types/index.d.ts +7 -7
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface InputTypeDefinition {
|
|
|
51
51
|
fields: {
|
|
52
52
|
[x: string]: GiraffeqlInputFieldType;
|
|
53
53
|
};
|
|
54
|
-
inputsValidator?: (args:
|
|
54
|
+
inputsValidator?: (args: any, fieldPath: string[]) => void;
|
|
55
55
|
}
|
|
56
56
|
export interface ObjectTypeDefinition {
|
|
57
57
|
name: string;
|
|
@@ -97,15 +97,15 @@ export declare type ScalarDefinitionFunction = (value: unknown) => unknown;
|
|
|
97
97
|
export interface RootResolverFunctionInput {
|
|
98
98
|
req: Request;
|
|
99
99
|
fieldPath: string[];
|
|
100
|
-
args:
|
|
101
|
-
query?:
|
|
100
|
+
args: any;
|
|
101
|
+
query?: any;
|
|
102
102
|
}
|
|
103
103
|
export declare type RootResolverFunction = (input: RootResolverFunctionInput) => unknown;
|
|
104
104
|
export interface ResolverFunctionInput {
|
|
105
105
|
req: Request;
|
|
106
106
|
fieldPath: string[];
|
|
107
|
-
args:
|
|
108
|
-
query:
|
|
107
|
+
args: any;
|
|
108
|
+
query: any;
|
|
109
109
|
parentValue: any;
|
|
110
110
|
fieldValue: unknown;
|
|
111
111
|
data?: any;
|
|
@@ -113,8 +113,8 @@ export interface ResolverFunctionInput {
|
|
|
113
113
|
export declare type ResolverFunction = (input: ResolverFunctionInput) => unknown;
|
|
114
114
|
export interface GiraffeqlResolverNode {
|
|
115
115
|
typeDef: ObjectTypeDefinitionField | RootResolverDefinition;
|
|
116
|
-
query?:
|
|
117
|
-
args?:
|
|
116
|
+
query?: any;
|
|
117
|
+
args?: any;
|
|
118
118
|
nested?: {
|
|
119
119
|
[x: string]: GiraffeqlResolverNode;
|
|
120
120
|
};
|