Skip to content

Commit

Permalink
feat: allow select option on resource hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
haddowg committed Jun 10, 2024
1 parent fbecdd2 commit e487839
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1009,17 +1009,14 @@ const createInfiniteQueryHook = ({
undefined,
f.createIdentifier("options"),
f.createToken(ts.SyntaxKind.QuestionToken),
f.createTypeReferenceNode(f.createIdentifier("Omit"), [
f.createTypeReferenceNode(
"Components.UseInfiniteQueryOptions",
[
f.createTypeReferenceNode(`Components.${dataType}`),
f.createTypeReferenceNode(`Components.${errorType}`),
f.createTypeReferenceNode("TData"),
],
),
f.createLiteralTypeNode(f.createStringLiteral("select")),
]),
f.createTypeReferenceNode(
"Components.UseInfiniteQueryOptions",
[
f.createTypeReferenceNode(`Components.${dataType}`),
f.createTypeReferenceNode(`Components.${errorType}`),
f.createTypeReferenceNode("TData"),
],
),
),
],
undefined,
Expand Down

0 comments on commit e487839

Please sign in to comment.