gql-query-builder icon indicating copy to clipboard operation
gql-query-builder copied to clipboard

Is the type of variables correct in NestedField?

Open hjbolide opened this issue 4 years ago • 0 comments

https://github.com/atulmy/gql-query-builder/blob/3dc80192f4f224fb140f643c6d5aff769dacc563/src/NestedField.ts#L11

Please refer to the above line, the type of variables in NestedField was set to IQueryBuilderOptions[], just wondering if that's correct at all?

If we look at it here: https://github.com/atulmy/gql-query-builder/blob/3dc80192f4f224fb140f643c6d5aff769dacc563/src/index.test.ts#L147

The variables object inside nested field would certainly fail the type check IQueryBuilderOptions[].

hjbolide avatar Oct 08 '20 05:10 hjbolide