near-api-js
near-api-js copied to clipboard
In 0.44.2 'headers' property is required in ConnectConfig
After switching to 0.44.2 got error for connect function.
`Property 'headers' is missing in type '
{ ... }
' but required in type 'ConnectConfig'.`
near-api-js/lib/near.d.ts:
/**
-
NEAR RPC API headers. Can be used to pass API KEY and other parameters.
-
@see {@link JsonRpcProvider.JsonRpcProvider | JsonRpcProvider}
*/ headers:
{ [key: string]: string | number; }
;
It's neither described in the connect module documentation nor ConnectConfig type description.
Pass to Application Team
Fixed in https://github.com/near/near-api-js/pull/939