Skip to content

Commit

Permalink
fix: type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
kriptonian1 committed Dec 17, 2024
1 parent 1fe3735 commit 9c23fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-client/src/core/response-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function parseResponse<T>(
success: false,
data: null,
error
} as ClientResponse<T>
} as unknown as ClientResponse<T>
}

let data: any = null
Expand All @@ -30,5 +30,5 @@ export async function parseResponse<T>(
success: true,
data,
error: null
} as ClientResponse<T>
} as unknown as ClientResponse<T>
}

0 comments on commit 9c23fc8

Please sign in to comment.