aws / aws/aws-xray-sdk-node

Typescript errors with captureFetchGlobal

Open
#700 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
280
Forks
157
PR merge metrics
No merged PRs in 30d

Description

When importing the `captureFetchGlobal`:

```ts
import { captureFetchGlobal } from "aws-xray-sdk-fetch";
const myFetch = captureFetchGlobal();
```

This triggers eslint errors:
```
Unsafe assignment of an `any` value.
```

And then when calling it:
```
Unsafe return of an `any` typed value.
Unsafe call of an `any` typed value.
```

Is there any way around this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.