Skip to content

[BUG] [typescript-fetch] Configuration class fails on strict mode #3708

@deluksic

Description

@deluksic

Configuration class from runtime.ts doesn't transpile if tsconfig.ts set to strict: true.

Specifically, | undefined should be added to these methods:

...
    get headers():  HTTPHeaders | undefined {
        return this.configuration.headers;
    }

    get credentials(): RequestCredentials | undefined {
        return this.configuration.credentials;
    }
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions