Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Jun 28, 2023
1 parent 281bd08 commit bd181c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/consent/consent-tools/src/types/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ export interface InitOptions {
export interface AnyAnalytics {
addSourceMiddleware(...args: any[]): any
on(event: 'initialize', callback: (settings: CDNSettings) => void): void

/**
* Either window.analytics.load(...) OR AnalyticsBrowser.load(...)
* This interface is meant to be compatible with both the snippet (`window.analytics.load`)
* and the npm lib (`AnalyticsBrowser.load`)
*/
load(
writeKeyOrSettings: AnalyticsBrowserSettings | string, // sorry for the any, this should beAnalyticsBrowserSettings | string, but TS errors in tests
/** See analytics-next function signature for more information. */
writeKeyOrSettings: AnalyticsBrowserSettings | string,
options?: InitOptions
): void
}
Expand Down

0 comments on commit bd181c9

Please sign in to comment.