Skip to content

Commit a1cb29e

Browse files
committed
Optimize exports
1 parent f09a046 commit a1cb29e

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

packages/optimizely-sdk/lib/index.d.ts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ declare module '@optimizely/optimizely-sdk' {
3939

4040
export type Event = import ('./shared_types').Event;
4141

42-
export interface DatafileOptions {
43-
autoUpdate?: boolean;
44-
updateInterval?: number;
45-
urlTemplate?: string;
46-
datafileAccessToken?: string;
47-
}
42+
export type EventDispatcher = import ('./shared_types').EventDispatcher;
43+
44+
export type DatafileOptions = import ('./shared_types').DatafileOptions;
4845

4946
// The options object given to Optimizely.createInstance.
5047
export interface Config {
@@ -145,17 +142,6 @@ declare module '@optimizely/optimizely-sdk' {
145142
close(): Promise<{ success: boolean; reason?: string }>;
146143
}
147144

148-
export interface EventDispatcher {
149-
/**
150-
* @param event
151-
* Event being submitted for eventual dispatch.
152-
* @param callback
153-
* After the event has at least been queued for dispatch, call this function to return
154-
* control back to the Client.
155-
*/
156-
dispatchEvent: (event: Event, callback: (response: { statusCode: number; }) => void) => void;
157-
}
158-
159145
// NotificationCenter-related types
160146
export interface NotificationCenter {
161147
addNotificationListener<T extends ListenerPayload>(

0 commit comments

Comments
 (0)