Skip to content

pages/api/hello.ts ? #1

@khuezy

Description

@khuezy

Hello, is there suppose to be a pages/api/[...ts-rest].ts file? I only see a hello.ts file.

I tried editing the pokeApi.ts but the client (ie pages/index.tsx) doesn't enforce the new typings.

eg:

const query = queryClient.getAllPokemon.useQuery(
  ['pokemon'],
 { query: { gibberish: 10 } }, // I'm expecting it to warn me here
 { staleTime: Infinity }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions