Closed ayushyadav468 closed 2 months ago
hi @ayushyadav468 thanks for brining this up, I've created a PR to test a change for fixing this. If all goes will, it will be part of the next release.
waiting for #189 to include these together in the next release.
I am using @axiomhq/winston to integrate winston and axiom. But this fails to build(build script: npx tsc)
Error by tsc: node_modules/@axiomhq/js/dist/esm/types/fetchClient.d.ts - error TS2314: Generic type 'RequestInitWithRetry' requires 1 type argument(s).
These lines:
doReq<T>(endpoint: string, method: string, init?: RequestInitWithRetry, searchParams?: {
post<T>(url: string, init?: RequestInitWithRetry, searchParams?: any): Promise<T>;
get<T>(url: string, init?: RequestInitWithRetry, searchParams?: any): Promise<T>;
put<T>(url: string, init?: RequestInitWithRetry, searchParams?: any): Promise<T>;
delete<T>(url: string, init?: RequestInitWithRetry, searchParams?: any): Promise<T>;
My logger file:
node: 20.11.1 npm: 10.2.4 typescript: 5.2.2 @axiomhq/winston: 1.0.0-rc.3 @axiomhq/js: 1.0.0-rc.3