Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok committed Jun 26, 2023
1 parent fbb56ad commit 3d5ac5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/spy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export interface MockContext<TArgs, TReturns> {

type Procedure = (...args: any[]) => any

type Methods<T> = {
[K in keyof T]: T[K] extends Procedure ? K : never
}[keyof T] & (string | symbol)
type Methods<T> = keyof {
[K in keyof T as T[K] extends Procedure ? K : never]: T[K];
}
type Properties<T> = {
[K in keyof T]: T[K] extends Procedure ? never : K
}[keyof T] & (string | symbol)
Expand Down

0 comments on commit 3d5ac5a

Please sign in to comment.