graphql-form 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
package/lib/models.d.ts CHANGED
@@ -23,7 +23,7 @@ export declare type PassedFormProps<WidgetData = ReturnedDictType> = {
23
23
  onChange: (formObject: FormObject) => void;
24
24
  changeWidget: (widgetData: WidgetSavedData | undefined, path: string) => void;
25
25
  required?: boolean;
26
- runQuery: (q: string) => Promise<unknown>;
26
+ runQuery: (q: string) => Promise<ReturnedDictType>;
27
27
  widgetComponents: WidgetType[];
28
28
  currentPath: string;
29
29
  widgets?: SavedWidgets;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-form",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Easy form creation with GraphQL Editor and React",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
package/src/models.ts CHANGED
@@ -26,7 +26,7 @@ export type PassedFormProps<WidgetData = ReturnedDictType> = {
26
26
  onChange: (formObject: FormObject) => void;
27
27
  changeWidget: (widgetData: WidgetSavedData | undefined, path: string) => void;
28
28
  required?: boolean;
29
- runQuery: (q: string) => Promise<unknown>;
29
+ runQuery: (q: string) => Promise<ReturnedDictType>;
30
30
  widgetComponents: WidgetType[];
31
31
  currentPath: string;
32
32
  widgets?: SavedWidgets;