Skip to content

Commit

Permalink
fix: Handle TypeScript breaking changes #136 (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien0102 authored Feb 21, 2023
1 parent fe6b7be commit f05ab09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/typescript/src/templates/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export const getUtils = () =>
? Result
: ComputeRange<N, [...Result, Result["length"]]>;
export type ${clientErrorStatus} = Exclude<ComputeRange<500>[-1], ComputeRange<400>[-1]>;
export type ${serverErrorStatus} = Exclude<ComputeRange<600>[-1], ComputeRange<500>[-1]>;`;
export type ${clientErrorStatus} = Exclude<ComputeRange<500>[number], ComputeRange<400>[number]>;
export type ${serverErrorStatus} = Exclude<ComputeRange<600>[number], ComputeRange<500>[number]>;`;

0 comments on commit f05ab09

Please sign in to comment.