Skip to content

captureException is potentially undefined #5

Description

@nathanbrachotte

Hey there,
trying to implement captureException from useBaselimeRum.
This hooks return type is

{
    setUser: (userId?: string) => void;
    sendEvent: (message: string, data?: any) => void;
    config?: undefined;
    _trackWebVital?: undefined;
    captureException?: undefined; // undefined here
} | {
    config: BaselimeRumConfig;
    setUser: (userId?: string) => void;
    _trackWebVital: (metric: any) => void;
    captureException: (error: Error, info?: React$1.ErrorInfo) => Promise<void>;
    sendEvent: (message: string, data?: any) => void;
}

I'm curious to know in which context captureException would not be defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions