Skip to content

Commit

Permalink
fix: better type checking for strings arguments of decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
tperale committed Dec 11, 2024
1 parent dd374d1 commit b061361
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/decorators/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ type CommaSeparetedRecursiveKey<TObj extends object, T extends string, U extends
? `${F},${CommaSeparetedRecursiveKey<TObj, R, Exclude<U, F>>}`
: never
: U

export type StringFormattedRecursiveKeyOf<T extends object, Args extends string> = Args extends RecursiveKeyWithOperations<T, Args> ? Args : RecursiveKeyWithOperations<T, Args>
export type StringFormattedCommaSepRecursiveKeyOf<T extends object, Args extends string> = Args extends CommaSeparetedRecursiveKey<T, Args> ? Args : CommaSeparetedRecursiveKey<T, Args>

Expand Down

0 comments on commit b061361

Please sign in to comment.