Skip to content

Typescript errors with captureFetchGlobal #700

@james-siteclick

Description

@james-siteclick

When importing the captureFetchGlobal:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions