Skip to content

@types/mparticle__web-sdk: Incorrect Typescript types for Rokt selection event handler #1061

Description

@dtrenz
Image

According to the documentation, the event handler should be a function but the types appear to suggest that the event handler is an object of type RoktPlacementEvent<T>:

export interface RoktPlacementEvent<T = void> {
    body: T;
    event: string;
    placement: RoktPlacement;
}

I'm using the latest version of the types (2.20.8).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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