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).