File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -40,3 +40,4 @@ const createCommercialQueue = (queueArr: QueueItem[] = []): Queue => {
4040} ;
4141
4242export { createCommercialQueue } ;
43+ export type { Queue , QueueItem } ;
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ import type {
1313 NSdkInstance ,
1414 OphanRecordFunction ,
1515 OptOutInitializeOptions ,
16- Queue ,
1716 SafeFrameAPI ,
1817 TeadsAnalytics ,
1918 Trac ,
2019} from '@guardian/commercial-core/types' ;
2120import type { CustomClaims } from '@guardian/identity-auth' ;
2221import type { Advert } from '../define/Advert' ;
22+ import type { Queue } from '../lib/guardian-commercial-queue' ;
2323import type { ThirdPartyTag } from '../lib/types' ;
2424
2525type ServerSideABTest = `${string } ${'Variant' | 'Control' } `;
Original file line number Diff line number Diff line change @@ -469,11 +469,6 @@ type AdmiralCallback = (event: AdmiralEvent) => void;
469469type AdmiralArg = string | AdmiralCallback ;
470470type Admiral = ( ...args : AdmiralArg [ ] ) => void ;
471471
472- type QueueItem = ( ) => void ;
473- type Queue = {
474- push : ( ...items : QueueItem [ ] ) => QueueItem [ ] ;
475- flush : ( ) => void ;
476- } ;
477472
478473interface CoreGuardian {
479474 config : Config ;
@@ -532,5 +527,4 @@ export type {
532527 Admiral ,
533528 AdmiralEvent ,
534529 CoreGuardian ,
535- Queue ,
536530} ;
You can’t perform that action at this time.
0 commit comments