Skip to content
Discussion options

You must be logged in to vote

Hello @felzix ,

this is the way:

new EndpointsFactory(
    new ResultHandler({
      positive: (schema) => [ // <— fn argument should go here
        {
          statusCode: 200,
          schema,
        },
        {
          statusCode: 204,
          mimeType: null,
          schema: z.never(),
        },
      ],
// ...

Then there is no error.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants