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
The issue is with the api.d.ts file itself. It is not allowed to pass headers as there is a RequestInit interface not reachable.
Here is a code example:
Argument of type '{ headers: { From: string; }; data: IncidentDataType; }' is not assignable to parameter of type 'Partial<APIParameters>'.
Object literal may only specify known properties, and 'headers' does not exist in type 'Partial<APIParameters>'.ts(2345)
RequestInit interface should be inside npm package.
[UPD] this issue occurs if you not using lib dom in tsconfig file.
The text was updated successfully, but these errors were encountered:
The issue is with the
api.d.ts
file itself. It is not allowed to passheaders
as there is aRequestInit
interface not reachable.Here is a code example:
and here is the TS error:
RequestInit
interface should be inside npm package.[UPD] this issue occurs if you not using lib dom in
tsconfig
file.The text was updated successfully, but these errors were encountered: