@ngxs/devtools-plugin 3.7.4 → 3.7.5-dev.master-887cc32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -223,388 +223,397 @@
223
223
  return value;
224
224
  }
225
225
 
226
- /**
227
- * @fileoverview added by tsickle
228
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
229
- */
230
- /**
231
- * Interface for the redux-devtools-extension API.
232
- * @record
233
- */
234
- function NgxsDevtoolsExtension() { }
235
- if (false) {
236
- /**
237
- * @param {?} state
238
- * @return {?}
239
- */
240
- NgxsDevtoolsExtension.prototype.init = function (state) { };
241
- /**
242
- * @param {?} action
243
- * @param {?=} state
244
- * @return {?}
245
- */
246
- NgxsDevtoolsExtension.prototype.send = function (action, state) { };
247
- /**
248
- * @param {?} fn
249
- * @return {?}
250
- */
251
- NgxsDevtoolsExtension.prototype.subscribe = function (fn) { };
252
- }
253
- /**
254
- * @record
255
- */
256
- function NgxsDevtoolsAction() { }
257
- if (false) {
258
- /** @type {?} */
259
- NgxsDevtoolsAction.prototype.type;
260
- /** @type {?} */
261
- NgxsDevtoolsAction.prototype.payload;
262
- /** @type {?} */
263
- NgxsDevtoolsAction.prototype.state;
264
- /** @type {?} */
265
- NgxsDevtoolsAction.prototype.id;
266
- /** @type {?} */
267
- NgxsDevtoolsAction.prototype.source;
268
- }
269
- /**
270
- * @record
271
- */
272
- function NgxsDevtoolsOptions() { }
273
- if (false) {
274
- /**
275
- * The name of the extension
276
- * @type {?|undefined}
277
- */
278
- NgxsDevtoolsOptions.prototype.name;
279
- /**
280
- * Whether the dev tools is enabled or note. Useful for setting during production.
281
- * @type {?|undefined}
282
- */
283
- NgxsDevtoolsOptions.prototype.disabled;
284
- /**
285
- * Max number of entiries to keep.
286
- * @type {?|undefined}
287
- */
288
- NgxsDevtoolsOptions.prototype.maxAge;
289
- /**
290
- * Reformat actions before sending to dev tools
291
- * @type {?|undefined}
292
- */
293
- NgxsDevtoolsOptions.prototype.actionSanitizer;
294
- /**
295
- * Reformat state before sending to devtools
296
- * @type {?|undefined}
297
- */
298
- NgxsDevtoolsOptions.prototype.stateSanitizer;
299
- }
300
- /** @type {?} */
226
+ /**
227
+ * @fileoverview added by tsickle
228
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
229
+ */
230
+ /**
231
+ * Interface for the redux-devtools-extension API.
232
+ * @record
233
+ */
234
+ function NgxsDevtoolsExtension() { }
235
+ if (false) {
236
+ /**
237
+ * @param {?} state
238
+ * @return {?}
239
+ */
240
+ NgxsDevtoolsExtension.prototype.init = function (state) { };
241
+ /**
242
+ * @param {?} action
243
+ * @param {?=} state
244
+ * @return {?}
245
+ */
246
+ NgxsDevtoolsExtension.prototype.send = function (action, state) { };
247
+ /**
248
+ * @param {?} fn
249
+ * @return {?}
250
+ */
251
+ NgxsDevtoolsExtension.prototype.subscribe = function (fn) { };
252
+ }
253
+ /**
254
+ * @record
255
+ */
256
+ function NgxsDevtoolsAction() { }
257
+ if (false) {
258
+ /** @type {?} */
259
+ NgxsDevtoolsAction.prototype.type;
260
+ /** @type {?} */
261
+ NgxsDevtoolsAction.prototype.payload;
262
+ /** @type {?} */
263
+ NgxsDevtoolsAction.prototype.state;
264
+ /** @type {?} */
265
+ NgxsDevtoolsAction.prototype.id;
266
+ /** @type {?} */
267
+ NgxsDevtoolsAction.prototype.source;
268
+ }
269
+ /**
270
+ * @record
271
+ */
272
+ function NgxsDevtoolsOptions() { }
273
+ if (false) {
274
+ /**
275
+ * The name of the extension
276
+ * @type {?|undefined}
277
+ */
278
+ NgxsDevtoolsOptions.prototype.name;
279
+ /**
280
+ * Whether the dev tools is enabled or note. Useful for setting during production.
281
+ * @type {?|undefined}
282
+ */
283
+ NgxsDevtoolsOptions.prototype.disabled;
284
+ /**
285
+ * Max number of entiries to keep.
286
+ * @type {?|undefined}
287
+ */
288
+ NgxsDevtoolsOptions.prototype.maxAge;
289
+ /**
290
+ * Reformat actions before sending to dev tools
291
+ * @type {?|undefined}
292
+ */
293
+ NgxsDevtoolsOptions.prototype.actionSanitizer;
294
+ /**
295
+ * Reformat state before sending to devtools
296
+ * @type {?|undefined}
297
+ */
298
+ NgxsDevtoolsOptions.prototype.stateSanitizer;
299
+ }
300
+ /** @type {?} */
301
301
  var NGXS_DEVTOOLS_OPTIONS = new core.InjectionToken('NGXS_DEVTOOLS_OPTIONS');
302
302
 
303
- /**
304
- * @fileoverview added by tsickle
305
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
306
- */
307
- /** @enum {string} */
308
- var ReduxDevtoolsActionType = {
309
- Dispatch: 'DISPATCH',
310
- Action: 'ACTION',
311
- };
312
- /** @enum {string} */
313
- var ReduxDevtoolsPayloadType = {
314
- JumpToAction: 'JUMP_TO_ACTION',
315
- JumpToState: 'JUMP_TO_STATE',
316
- ToggleAction: 'TOGGLE_ACTION',
317
- ImportState: 'IMPORT_STATE',
318
- };
319
- /**
320
- * Adds support for the Redux Devtools extension:
321
- * http://extension.remotedev.io/
322
- */
323
- var NgxsReduxDevtoolsPlugin = /** @class */ (function () {
324
- function NgxsReduxDevtoolsPlugin(_options, _injector, _ngZone) {
325
- this._options = _options;
326
- this._injector = _injector;
327
- this._ngZone = _ngZone;
328
- this.devtoolsExtension = null;
329
- this.globalDevtools = core.ɵglobal['__REDUX_DEVTOOLS_EXTENSION__'] || core.ɵglobal['devToolsExtension'];
330
- this.unsubscribe = null;
331
- this.connect();
332
- }
333
- /**
334
- * @return {?}
335
- */
336
- NgxsReduxDevtoolsPlugin.prototype.ngOnDestroy = /**
337
- * @return {?}
338
- */
339
- function () {
340
- if (this.unsubscribe !== null) {
341
- this.unsubscribe();
342
- }
343
- if (this.globalDevtools) {
344
- this.globalDevtools.disconnect();
345
- }
346
- };
347
- Object.defineProperty(NgxsReduxDevtoolsPlugin.prototype, "store", {
348
- /**
349
- * Lazy get the store for circular dependency issues
350
- */
351
- get: /**
352
- * Lazy get the store for circular dependency issues
353
- * @private
354
- * @return {?}
355
- */
356
- function () {
357
- return this._injector.get(store.Store);
358
- },
359
- enumerable: true,
360
- configurable: true
361
- });
362
- /**
363
- * Middleware handle function
364
- */
365
- /**
366
- * Middleware handle function
367
- * @param {?} state
368
- * @param {?} action
369
- * @param {?} next
370
- * @return {?}
371
- */
372
- NgxsReduxDevtoolsPlugin.prototype.handle = /**
373
- * Middleware handle function
374
- * @param {?} state
375
- * @param {?} action
376
- * @param {?} next
377
- * @return {?}
378
- */
379
- function (state, action, next) {
380
- var _this = this;
381
- if (!this.devtoolsExtension || this._options.disabled) {
382
- return next(state, action);
383
- }
384
- return next(state, action).pipe(operators.catchError((/**
385
- * @param {?} error
386
- * @return {?}
387
- */
388
- function (error) {
389
- /** @type {?} */
390
- var newState = _this.store.snapshot();
391
- _this.sendToDevTools(state, action, newState);
392
- throw error;
393
- })), operators.tap((/**
394
- * @param {?} newState
395
- * @return {?}
396
- */
397
- function (newState) {
398
- _this.sendToDevTools(state, action, newState);
399
- })));
400
- };
401
- /**
402
- * @private
403
- * @param {?} state
404
- * @param {?} action
405
- * @param {?} newState
406
- * @return {?}
407
- */
408
- NgxsReduxDevtoolsPlugin.prototype.sendToDevTools = /**
409
- * @private
410
- * @param {?} state
411
- * @param {?} action
412
- * @param {?} newState
413
- * @return {?}
414
- */
415
- function (state, action, newState) {
416
- /** @type {?} */
417
- var type = store.getActionTypeFromInstance(action);
418
- // if init action, send initial state to dev tools
419
- /** @type {?} */
420
- var isInitAction = type === '@@INIT';
421
- if (isInitAction) {
422
- (/** @type {?} */ (this.devtoolsExtension)).init(state);
423
- }
424
- else {
425
- (/** @type {?} */ (this.devtoolsExtension)).send(__assign({}, action, { action: null, type: type }), newState);
426
- }
427
- };
428
- /**
429
- * Handle the action from the dev tools subscription
430
- */
431
- /**
432
- * Handle the action from the dev tools subscription
433
- * @param {?} action
434
- * @return {?}
435
- */
436
- NgxsReduxDevtoolsPlugin.prototype.dispatched = /**
437
- * Handle the action from the dev tools subscription
438
- * @param {?} action
439
- * @return {?}
440
- */
441
- function (action) {
442
- var _this = this;
443
- if (action.type === "DISPATCH" /* Dispatch */) {
444
- if (action.payload.type === "JUMP_TO_ACTION" /* JumpToAction */ ||
445
- action.payload.type === "JUMP_TO_STATE" /* JumpToState */) {
446
- /** @type {?} */
447
- var prevState = JSON.parse(action.state);
448
- this.store.reset(prevState);
449
- }
450
- else if (action.payload.type === "TOGGLE_ACTION" /* ToggleAction */) {
451
- console.warn('Skip is not supported at this time.');
452
- }
453
- else if (action.payload.type === "IMPORT_STATE" /* ImportState */) {
454
- var _a = action.payload.nextLiftedState, actionsById_1 = _a.actionsById, computedStates_1 = _a.computedStates, currentStateIndex = _a.currentStateIndex;
455
- (/** @type {?} */ (this.devtoolsExtension)).init(computedStates_1[0].state);
456
- Object.keys(actionsById_1)
457
- .filter((/**
458
- * @param {?} actionId
459
- * @return {?}
460
- */
461
- function (actionId) { return actionId !== '0'; }))
462
- .forEach((/**
463
- * @param {?} actionId
464
- * @return {?}
465
- */
466
- function (actionId) {
467
- return (/** @type {?} */ (_this.devtoolsExtension)).send(actionsById_1[actionId], computedStates_1[actionId].state);
468
- }));
469
- this.store.reset(computedStates_1[currentStateIndex].state);
470
- }
471
- }
472
- else if (action.type === "ACTION" /* Action */) {
473
- /** @type {?} */
474
- var actionPayload = JSON.parse(action.payload);
475
- this.store.dispatch(actionPayload);
476
- }
477
- };
478
- /**
479
- * @private
480
- * @return {?}
481
- */
482
- NgxsReduxDevtoolsPlugin.prototype.connect = /**
483
- * @private
484
- * @return {?}
485
- */
486
- function () {
487
- var _this = this;
488
- if (!this.globalDevtools || this._options.disabled) {
489
- return;
490
- }
491
- // The `connect` method adds `message` event listener since it communicates
492
- // with an extension through `window.postMessage` and message events.
493
- // We handle only 2 events; thus, we don't want to run many change detections
494
- // because the extension sends events that we don't have to handle.
495
- this.devtoolsExtension = this._ngZone.runOutsideAngular((/**
496
- * @return {?}
497
- */
498
- function () { return (/** @type {?} */ (_this.globalDevtools.connect(_this._options))); }));
499
- this.unsubscribe = this.devtoolsExtension.subscribe((/**
500
- * @param {?} action
501
- * @return {?}
502
- */
503
- function (action) {
504
- if (action.type === "DISPATCH" /* Dispatch */ ||
505
- action.type === "ACTION" /* Action */) {
506
- _this._ngZone.run((/**
507
- * @return {?}
508
- */
509
- function () {
510
- _this.dispatched(action);
511
- }));
512
- }
513
- }));
514
- };
515
- NgxsReduxDevtoolsPlugin.decorators = [
516
- { type: core.Injectable }
517
- ];
518
- /** @nocollapse */
519
- NgxsReduxDevtoolsPlugin.ctorParameters = function () { return [
520
- { type: undefined, decorators: [{ type: core.Inject, args: [NGXS_DEVTOOLS_OPTIONS,] }] },
521
- { type: core.Injector },
522
- { type: core.NgZone }
523
- ]; };
524
- return NgxsReduxDevtoolsPlugin;
525
- }());
526
- if (false) {
527
- /**
528
- * @type {?}
529
- * @private
530
- */
531
- NgxsReduxDevtoolsPlugin.prototype.devtoolsExtension;
532
- /**
533
- * @type {?}
534
- * @private
535
- */
536
- NgxsReduxDevtoolsPlugin.prototype.globalDevtools;
537
- /**
538
- * @type {?}
539
- * @private
540
- */
541
- NgxsReduxDevtoolsPlugin.prototype.unsubscribe;
542
- /**
543
- * @type {?}
544
- * @private
545
- */
546
- NgxsReduxDevtoolsPlugin.prototype._options;
547
- /**
548
- * @type {?}
549
- * @private
550
- */
551
- NgxsReduxDevtoolsPlugin.prototype._injector;
552
- /**
553
- * @type {?}
554
- * @private
555
- */
556
- NgxsReduxDevtoolsPlugin.prototype._ngZone;
303
+ /**
304
+ * @fileoverview added by tsickle
305
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
306
+ */
307
+ /** @enum {string} */
308
+ var ReduxDevtoolsActionType = {
309
+ Dispatch: 'DISPATCH',
310
+ Action: 'ACTION',
311
+ };
312
+ /** @enum {string} */
313
+ var ReduxDevtoolsPayloadType = {
314
+ JumpToAction: 'JUMP_TO_ACTION',
315
+ JumpToState: 'JUMP_TO_STATE',
316
+ ToggleAction: 'TOGGLE_ACTION',
317
+ ImportState: 'IMPORT_STATE',
318
+ };
319
+ /**
320
+ * Adds support for the Redux Devtools extension:
321
+ * http://extension.remotedev.io/
322
+ */
323
+ var NgxsReduxDevtoolsPlugin = /** @class */ (function () {
324
+ function NgxsReduxDevtoolsPlugin(_options, _injector, _ngZone) {
325
+ this._options = _options;
326
+ this._injector = _injector;
327
+ this._ngZone = _ngZone;
328
+ this.devtoolsExtension = null;
329
+ this.globalDevtools = core.ɵglobal['__REDUX_DEVTOOLS_EXTENSION__'] || core.ɵglobal['devToolsExtension'];
330
+ this.unsubscribe = null;
331
+ this.connect();
332
+ }
333
+ /**
334
+ * @return {?}
335
+ */
336
+ NgxsReduxDevtoolsPlugin.prototype.ngOnDestroy = /**
337
+ * @return {?}
338
+ */
339
+ function () {
340
+ if (this.unsubscribe !== null) {
341
+ this.unsubscribe();
342
+ }
343
+ if (this.globalDevtools) {
344
+ this.globalDevtools.disconnect();
345
+ }
346
+ };
347
+ Object.defineProperty(NgxsReduxDevtoolsPlugin.prototype, "store", {
348
+ /**
349
+ * Lazy get the store for circular dependency issues
350
+ */
351
+ get: /**
352
+ * Lazy get the store for circular dependency issues
353
+ * @private
354
+ * @return {?}
355
+ */
356
+ function () {
357
+ return this._injector.get(store.Store);
358
+ },
359
+ enumerable: true,
360
+ configurable: true
361
+ });
362
+ /**
363
+ * Middleware handle function
364
+ */
365
+ /**
366
+ * Middleware handle function
367
+ * @param {?} state
368
+ * @param {?} action
369
+ * @param {?} next
370
+ * @return {?}
371
+ */
372
+ NgxsReduxDevtoolsPlugin.prototype.handle = /**
373
+ * Middleware handle function
374
+ * @param {?} state
375
+ * @param {?} action
376
+ * @param {?} next
377
+ * @return {?}
378
+ */
379
+ function (state, action, next) {
380
+ var _this = this;
381
+ if (!this.devtoolsExtension || this._options.disabled) {
382
+ return next(state, action);
383
+ }
384
+ return next(state, action).pipe(operators.catchError((/**
385
+ * @param {?} error
386
+ * @return {?}
387
+ */
388
+ function (error) {
389
+ /** @type {?} */
390
+ var newState = _this.store.snapshot();
391
+ _this.sendToDevTools(state, action, newState);
392
+ throw error;
393
+ })), operators.tap((/**
394
+ * @param {?} newState
395
+ * @return {?}
396
+ */
397
+ function (newState) {
398
+ _this.sendToDevTools(state, action, newState);
399
+ })));
400
+ };
401
+ /**
402
+ * @private
403
+ * @param {?} state
404
+ * @param {?} action
405
+ * @param {?} newState
406
+ * @return {?}
407
+ */
408
+ NgxsReduxDevtoolsPlugin.prototype.sendToDevTools = /**
409
+ * @private
410
+ * @param {?} state
411
+ * @param {?} action
412
+ * @param {?} newState
413
+ * @return {?}
414
+ */
415
+ function (state, action, newState) {
416
+ /** @type {?} */
417
+ var type = store.getActionTypeFromInstance(action);
418
+ // if init action, send initial state to dev tools
419
+ /** @type {?} */
420
+ var isInitAction = type === '@@INIT';
421
+ if (isInitAction) {
422
+ (/** @type {?} */ (this.devtoolsExtension)).init(state);
423
+ }
424
+ else {
425
+ (/** @type {?} */ (this.devtoolsExtension)).send(__assign({}, action, { action: null, type: type }), newState);
426
+ }
427
+ };
428
+ /**
429
+ * Handle the action from the dev tools subscription
430
+ */
431
+ /**
432
+ * Handle the action from the dev tools subscription
433
+ * @param {?} action
434
+ * @return {?}
435
+ */
436
+ NgxsReduxDevtoolsPlugin.prototype.dispatched = /**
437
+ * Handle the action from the dev tools subscription
438
+ * @param {?} action
439
+ * @return {?}
440
+ */
441
+ function (action) {
442
+ var _this = this;
443
+ if (action.type === "DISPATCH" /* Dispatch */) {
444
+ if (action.payload.type === "JUMP_TO_ACTION" /* JumpToAction */ ||
445
+ action.payload.type === "JUMP_TO_STATE" /* JumpToState */) {
446
+ /** @type {?} */
447
+ var prevState = JSON.parse(action.state);
448
+ // This makes the DevTools and Router plugins friends with each other.
449
+ // We're checking for the `router` state to exist, and it also should
450
+ // have the `trigger` property, so we're sure that this is our router
451
+ // state (coming from `@ngxs/router-plugin`). This enables a time-traveling
452
+ // feature since it doesn't only restore the state but also allows the `RouterState`
453
+ // to navigate back when the action is jumped.
454
+ if (prevState.router && prevState.router.trigger) {
455
+ prevState.router.trigger = 'devtools';
456
+ }
457
+ this.store.reset(prevState);
458
+ }
459
+ else if (action.payload.type === "TOGGLE_ACTION" /* ToggleAction */) {
460
+ console.warn('Skip is not supported at this time.');
461
+ }
462
+ else if (action.payload.type === "IMPORT_STATE" /* ImportState */) {
463
+ var _a = action.payload.nextLiftedState, actionsById_1 = _a.actionsById, computedStates_1 = _a.computedStates, currentStateIndex = _a.currentStateIndex;
464
+ (/** @type {?} */ (this.devtoolsExtension)).init(computedStates_1[0].state);
465
+ Object.keys(actionsById_1)
466
+ .filter((/**
467
+ * @param {?} actionId
468
+ * @return {?}
469
+ */
470
+ function (actionId) { return actionId !== '0'; }))
471
+ .forEach((/**
472
+ * @param {?} actionId
473
+ * @return {?}
474
+ */
475
+ function (actionId) {
476
+ return (/** @type {?} */ (_this.devtoolsExtension)).send(actionsById_1[actionId], computedStates_1[actionId].state);
477
+ }));
478
+ this.store.reset(computedStates_1[currentStateIndex].state);
479
+ }
480
+ }
481
+ else if (action.type === "ACTION" /* Action */) {
482
+ /** @type {?} */
483
+ var actionPayload = JSON.parse(action.payload);
484
+ this.store.dispatch(actionPayload);
485
+ }
486
+ };
487
+ /**
488
+ * @private
489
+ * @return {?}
490
+ */
491
+ NgxsReduxDevtoolsPlugin.prototype.connect = /**
492
+ * @private
493
+ * @return {?}
494
+ */
495
+ function () {
496
+ var _this = this;
497
+ if (!this.globalDevtools || this._options.disabled) {
498
+ return;
499
+ }
500
+ // The `connect` method adds `message` event listener since it communicates
501
+ // with an extension through `window.postMessage` and message events.
502
+ // We handle only 2 events; thus, we don't want to run many change detections
503
+ // because the extension sends events that we don't have to handle.
504
+ this.devtoolsExtension = this._ngZone.runOutsideAngular((/**
505
+ * @return {?}
506
+ */
507
+ function () { return (/** @type {?} */ (_this.globalDevtools.connect(_this._options))); }));
508
+ this.unsubscribe = this.devtoolsExtension.subscribe((/**
509
+ * @param {?} action
510
+ * @return {?}
511
+ */
512
+ function (action) {
513
+ if (action.type === "DISPATCH" /* Dispatch */ ||
514
+ action.type === "ACTION" /* Action */) {
515
+ _this._ngZone.run((/**
516
+ * @return {?}
517
+ */
518
+ function () {
519
+ _this.dispatched(action);
520
+ }));
521
+ }
522
+ }));
523
+ };
524
+ NgxsReduxDevtoolsPlugin.decorators = [
525
+ { type: core.Injectable }
526
+ ];
527
+ /** @nocollapse */
528
+ NgxsReduxDevtoolsPlugin.ctorParameters = function () { return [
529
+ { type: undefined, decorators: [{ type: core.Inject, args: [NGXS_DEVTOOLS_OPTIONS,] }] },
530
+ { type: core.Injector },
531
+ { type: core.NgZone }
532
+ ]; };
533
+ return NgxsReduxDevtoolsPlugin;
534
+ }());
535
+ if (false) {
536
+ /**
537
+ * @type {?}
538
+ * @private
539
+ */
540
+ NgxsReduxDevtoolsPlugin.prototype.devtoolsExtension;
541
+ /**
542
+ * @type {?}
543
+ * @private
544
+ */
545
+ NgxsReduxDevtoolsPlugin.prototype.globalDevtools;
546
+ /**
547
+ * @type {?}
548
+ * @private
549
+ */
550
+ NgxsReduxDevtoolsPlugin.prototype.unsubscribe;
551
+ /**
552
+ * @type {?}
553
+ * @private
554
+ */
555
+ NgxsReduxDevtoolsPlugin.prototype._options;
556
+ /**
557
+ * @type {?}
558
+ * @private
559
+ */
560
+ NgxsReduxDevtoolsPlugin.prototype._injector;
561
+ /**
562
+ * @type {?}
563
+ * @private
564
+ */
565
+ NgxsReduxDevtoolsPlugin.prototype._ngZone;
557
566
  }
558
567
 
559
- /**
560
- * @fileoverview added by tsickle
561
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
562
- */
563
- /**
564
- * @param {?} options
565
- * @return {?}
566
- */
567
- function devtoolsOptionsFactory(options) {
568
- return __assign({ name: 'NGXS' }, options);
569
- }
570
- /** @type {?} */
571
- var USER_OPTIONS = new core.InjectionToken('USER_OPTIONS');
572
- var NgxsReduxDevtoolsPluginModule = /** @class */ (function () {
573
- function NgxsReduxDevtoolsPluginModule() {
574
- }
575
- /**
576
- * @param {?=} options
577
- * @return {?}
578
- */
579
- NgxsReduxDevtoolsPluginModule.forRoot = /**
580
- * @param {?=} options
581
- * @return {?}
582
- */
583
- function (options) {
584
- return {
585
- ngModule: NgxsReduxDevtoolsPluginModule,
586
- providers: [
587
- {
588
- provide: store.NGXS_PLUGINS,
589
- useClass: NgxsReduxDevtoolsPlugin,
590
- multi: true
591
- },
592
- {
593
- provide: USER_OPTIONS,
594
- useValue: options
595
- },
596
- {
597
- provide: NGXS_DEVTOOLS_OPTIONS,
598
- useFactory: devtoolsOptionsFactory,
599
- deps: [USER_OPTIONS]
600
- }
601
- ]
602
- };
603
- };
604
- NgxsReduxDevtoolsPluginModule.decorators = [
605
- { type: core.NgModule }
606
- ];
607
- return NgxsReduxDevtoolsPluginModule;
568
+ /**
569
+ * @fileoverview added by tsickle
570
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
571
+ */
572
+ /**
573
+ * @param {?} options
574
+ * @return {?}
575
+ */
576
+ function devtoolsOptionsFactory(options) {
577
+ return __assign({ name: 'NGXS' }, options);
578
+ }
579
+ /** @type {?} */
580
+ var USER_OPTIONS = new core.InjectionToken('USER_OPTIONS');
581
+ var NgxsReduxDevtoolsPluginModule = /** @class */ (function () {
582
+ function NgxsReduxDevtoolsPluginModule() {
583
+ }
584
+ /**
585
+ * @param {?=} options
586
+ * @return {?}
587
+ */
588
+ NgxsReduxDevtoolsPluginModule.forRoot = /**
589
+ * @param {?=} options
590
+ * @return {?}
591
+ */
592
+ function (options) {
593
+ return {
594
+ ngModule: NgxsReduxDevtoolsPluginModule,
595
+ providers: [
596
+ {
597
+ provide: store.NGXS_PLUGINS,
598
+ useClass: NgxsReduxDevtoolsPlugin,
599
+ multi: true
600
+ },
601
+ {
602
+ provide: USER_OPTIONS,
603
+ useValue: options
604
+ },
605
+ {
606
+ provide: NGXS_DEVTOOLS_OPTIONS,
607
+ useFactory: devtoolsOptionsFactory,
608
+ deps: [USER_OPTIONS]
609
+ }
610
+ ]
611
+ };
612
+ };
613
+ NgxsReduxDevtoolsPluginModule.decorators = [
614
+ { type: core.NgModule }
615
+ ];
616
+ return NgxsReduxDevtoolsPluginModule;
608
617
  }());
609
618
 
610
619
  exports.NGXS_DEVTOOLS_OPTIONS = NGXS_DEVTOOLS_OPTIONS;