@@ -217,7 +217,7 @@ const getListenerEntryPropsFrom = (options: FallbackAddListenerOptions) => {
217
217
218
218
/** Accepts the possible options for creating a listener, and returns a formatted listener entry */
219
219
export const createListenerEntry : TypedCreateListenerEntry < unknown > =
220
- Object . assign (
220
+ /* @__PURE__ */ assign (
221
221
( options : FallbackAddListenerOptions ) => {
222
222
const { type, predicate, effect } = getListenerEntryPropsFrom ( options )
223
223
@@ -282,21 +282,29 @@ const safelyNotifyError = (
282
282
/**
283
283
* @public
284
284
*/
285
- export const addListener = Object . assign ( createAction ( `${ alm } /add` ) , {
286
- withTypes : ( ) => addListener ,
287
- } ) as unknown as TypedAddListener < unknown >
285
+ export const addListener = /* @__PURE__ */ assign (
286
+ /* @__PURE__ */ createAction ( `${ alm } /add` ) ,
287
+ {
288
+ withTypes : ( ) => addListener ,
289
+ } ,
290
+ ) as unknown as TypedAddListener < unknown >
288
291
289
292
/**
290
293
* @public
291
294
*/
292
- export const clearAllListeners = createAction ( `${ alm } /removeAll` )
295
+ export const clearAllListeners = /* @__PURE__ */ createAction (
296
+ `${ alm } /removeAll` ,
297
+ )
293
298
294
299
/**
295
300
* @public
296
301
*/
297
- export const removeListener = Object . assign ( createAction ( `${ alm } /remove` ) , {
298
- withTypes : ( ) => removeListener ,
299
- } ) as unknown as TypedRemoveListener < unknown >
302
+ export const removeListener = /* @__PURE__ */ assign (
303
+ /* @__PURE__ */ createAction ( `${ alm } /remove` ) ,
304
+ {
305
+ withTypes : ( ) => removeListener ,
306
+ } ,
307
+ ) as unknown as TypedRemoveListener < unknown >
300
308
301
309
const defaultErrorHandler : ListenerErrorHandler = ( ...args : unknown [ ] ) => {
302
310
console . error ( `${ alm } /error` , ...args )
@@ -346,7 +354,7 @@ export const createListenerMiddleware = <
346
354
return insertEntry ( entry )
347
355
} ) as AddListenerOverloads < any >
348
356
349
- Object . assign ( startListening , {
357
+ assign ( startListening , {
350
358
withTypes : ( ) => startListening ,
351
359
} )
352
360
@@ -374,7 +382,7 @@ export const createListenerMiddleware = <
374
382
return ! ! entry
375
383
}
376
384
377
- Object . assign ( stopListening , {
385
+ assign ( stopListening , {
378
386
withTypes : ( ) => stopListening ,
379
387
} )
380
388
0 commit comments