-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<T> { | ||
abstract funnelStarted(fields: T | FunnelStartedFields): Promise<void> | ||
abstract testStarted(fields: T | TestStartedFields): Promise<void> | ||
abstract userClick(fields: T | UserClickFields): Promise<void> | ||
abstract viewContent(fields: T | ViewContentFields): Promise<void> | ||
export abstract class UserEventHandler<TData extends EmptyObject> { | ||
abstract funnelStarted<T extends TData>(fields: T | FunnelStartedFields): Promise<void> | ||
abstract testStarted<T extends TData>(fields: T | TestStartedFields): Promise<void> | ||
abstract userClick<T extends TData>(fields: T | UserClickFields): Promise<void> | ||
abstract viewContent<T extends TData>(fields: T | ViewContentFields): Promise<void> | ||
} |