Open infomiho opened 4 weeks ago
For users to get benefits of type auto-complete in their IDE, we should properly type the options param of our useQuery helper: https://github.com/wasp-lang/wasp/blob/73e55326bd9f427bd3e390f97ca86be776ab2b02/waspc/data/Generator/templates/sdk/wasp/client/operations/hooks.ts#L18
options
useQuery
Also, useQuery's type says that the payload is always optional (but this actually depends on the operation). We should fix that too
For users to get benefits of type auto-complete in their IDE, we should properly type the
options
param of ouruseQuery
helper: https://github.com/wasp-lang/wasp/blob/73e55326bd9f427bd3e390f97ca86be776ab2b02/waspc/data/Generator/templates/sdk/wasp/client/operations/hooks.ts#L18Also,
useQuery
's type says that the payload is always optional (but this actually depends on the operation). We should fix that too