[GH-ISSUE #51] Is the type of variables correct in NestedField? #123

Open
opened 2026-03-15 11:34:21 +03:00 by kerem · 0 comments
Owner

Originally created by @hjbolide on GitHub (Oct 8, 2020).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/51

github.com/atulmy/gql-query-builder@3dc80192f4/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: github.com/atulmy/gql-query-builder@3dc80192f4/src/index.test.ts (L147)

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

Originally created by @hjbolide on GitHub (Oct 8, 2020). Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/51 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[].
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gql-query-builder#123
No description provided.