@@ -35,6 +35,10 @@ declare module '@optimizely/optimizely-sdk' {
35
35
36
36
export type OptimizelyConfig = import ( './shared_types' ) . OptimizelyConfig ;
37
37
38
+ export type EventTags = import ( './shared_types' ) . EventTags ;
39
+
40
+ export type Event = import ( './shared_types' ) . Event ;
41
+
38
42
export interface DatafileOptions {
39
43
autoUpdate ?: boolean ;
40
44
updateInterval ?: number ;
@@ -141,19 +145,6 @@ declare module '@optimizely/optimizely-sdk' {
141
145
close ( ) : Promise < { success : boolean ; reason ?: string } > ;
142
146
}
143
147
144
- // An event to be submitted to Optimizely, enabling tracking the reach and impact of
145
- // tests and feature rollouts.
146
- export interface Event {
147
- // URL to which to send the HTTP request.
148
- url : string ;
149
- // HTTP method with which to send the event.
150
- httpVerb : 'POST' ;
151
- // Value to send in the request body, JSON-serialized.
152
- // TODO[OASIS-6649]: Don't use any type
153
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
- params : any ;
155
- }
156
-
157
148
export interface EventDispatcher {
158
149
/**
159
150
* @param event
@@ -165,10 +156,6 @@ declare module '@optimizely/optimizely-sdk' {
165
156
dispatchEvent : ( event : Event , callback : ( response : { statusCode : number ; } ) => void ) => void ;
166
157
}
167
158
168
- export type EventTags = {
169
- [ key : string ] : string | number | null ;
170
- } ;
171
-
172
159
// NotificationCenter-related types
173
160
export interface NotificationCenter {
174
161
addNotificationListener < T extends ListenerPayload > (
0 commit comments