graphql-form 0.0.11 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
package/lib/models.d.ts CHANGED
@@ -59,7 +59,7 @@ export declare type FormDisplayerProps = Omit<PassedFormProps, 'formObject' | 'o
59
59
  onChange: (o: FormFile, query: string) => void;
60
60
  };
61
61
  export declare type FormLibraryProps = Omit<FormDisplayerProps, 'required' | 'components'>;
62
- export declare type CastToWidgetSettingsPassedForm<WidgetData = ReturnedDictType> = PassedFormProps<Partial<WidgetData>> & {
62
+ export declare type CastToWidgetSettingsPassedForm<WidgetData = ReturnedDictType> = Partial<PassedFormProps<Partial<WidgetData>>> & {
63
63
  widgetSettingsChange: (data: WidgetData) => void;
64
64
  };
65
65
  export declare type WidgetType = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-form",
3
- "version": "0.0.11",
3
+ "version": "0.0.14",
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
@@ -73,7 +73,9 @@ export type FormDisplayerProps = Omit<
73
73
 
74
74
  export type FormLibraryProps = Omit<FormDisplayerProps, 'required' | 'components'>;
75
75
 
76
- export type CastToWidgetSettingsPassedForm<WidgetData = ReturnedDictType> = PassedFormProps<Partial<WidgetData>> & {
76
+ export type CastToWidgetSettingsPassedForm<WidgetData = ReturnedDictType> = Partial<
77
+ PassedFormProps<Partial<WidgetData>>
78
+ > & {
77
79
  widgetSettingsChange: (data: WidgetData) => void;
78
80
  };
79
81