Skip to content

typesPrefix is missing in generic for Properties for Args types #499

Closed
@sschneider-ihre-pvs

Description

@sschneider-ihre-pvs

sometimes the configured typesPrefix is missing which leads to typescript error.

export function xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxArgsSchema(): z.ZodObject<
  Properties<xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxArgs>
> {
  return z.object({
    limit: z.number().nullish(),
    offset: z.number().nullish(),
  });
}

instead of

export function xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxArgsSchema(): z.ZodObject<
  Properties<IxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxArgs>
> {
  return z.object({
    limit: z.number().nullish(),
    offset: z.number().nullish(),
  });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions