From ddd8f03ea78a0f89f9fb3e67b3bd320f1485790a Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Fri, 6 Sep 2024 12:22:05 -0700 Subject: [PATCH] UserEventHandler types - 2.0.4 --- package.json | 2 +- src/UserEventHandler.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 377563b..d04494f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xylabs/pixel", - "version": "2.0.3", + "version": "2.0.4", "description": "Event Client for xylabs ESB", "homepage": "https://xylabs.com", "bugs": { diff --git a/src/UserEventHandler.ts b/src/UserEventHandler.ts index 0ef527d..943aab2 100644 --- a/src/UserEventHandler.ts +++ b/src/UserEventHandler.ts @@ -1,11 +1,13 @@ +import type { EmptyObject } from '@xylabs/object' + import type { FunnelStartedFields } from './FunnelStartedFields.js' import type { TestStartedFields } from './TestStartedFields.js' import type { UserClickFields } from './UserClickFields.js' import type { ViewContentFields } from './ViewContentFields.js' -export abstract class UserEventHandler { - abstract funnelStarted(fields: T | FunnelStartedFields): Promise - abstract testStarted(fields: T | TestStartedFields): Promise - abstract userClick(fields: T | UserClickFields): Promise - abstract viewContent(fields: T | ViewContentFields): Promise +export abstract class UserEventHandler { + abstract funnelStarted(fields: T | FunnelStartedFields): Promise + abstract testStarted(fields: T | TestStartedFields): Promise + abstract userClick(fields: T | UserClickFields): Promise + abstract viewContent(fields: T | ViewContentFields): Promise }