Skip to content

Expose type with combined "ParseRequestOptions" and "flushTimeout" #2994

@rchl

Description

@rchl

The requestHandler can be passed various options and currently the types for those options are defined as an union of types ParseRequestOptions & { flushTimeout?: number; }:

export function requestHandler(
options?: ParseRequestOptions & {
flushTimeout?: number;
},

The issue is that the combined type is not exported so libraries that provide a higher-level configuration on top of Sentry can't import and use that type directly but have to create a similar union of types. And that can get out of sync with Sentry implementation.

The suggestion is to just create a separate type for this union so that it's exported from the module and can be used directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions