You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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.
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
The text was updated successfully, but these errors were encountered: