mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-04-06 09:44:13 +03:00
Updates
This commit is contained in:
parent
7723f58150
commit
bdb9e3f807
|
@ -29,8 +29,7 @@
|
|||
"prepublish": "pnpm run type-check && pnpm run lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.26.9",
|
||||
"immutable": "^5.0.3"
|
||||
"@babel/runtime": "^7.26.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.26.4",
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import type Immutable from 'immutable';
|
||||
import { compose } from 'redux';
|
||||
import type { Action, ActionCreator, StoreEnhancer } from 'redux';
|
||||
|
||||
|
@ -74,11 +73,11 @@ export interface EnhancerOptions {
|
|||
* Just pass the Immutable library. It will support all ImmutableJS structures. You can even export them into a file and get them back.
|
||||
* The only exception is `Record` class, for which you should pass this in addition the references to your classes in `refs`.
|
||||
*/
|
||||
immutable?: typeof Immutable;
|
||||
immutable?: unknown;
|
||||
/**
|
||||
* ImmutableJS `Record` classes used to make possible restore its instances back when importing, persisting...
|
||||
*/
|
||||
refs?: Immutable.Record.Factory<any>[];
|
||||
refs?: (new (data: any) => unknown)[];
|
||||
};
|
||||
/**
|
||||
* function which takes `action` object and id number as arguments, and should return `action` object back.
|
||||
|
|
|
@ -57,8 +57,8 @@ export default function serialize(
|
|||
return immutable.List(immutableValue.data);
|
||||
case 'ImmutableRange':
|
||||
return immutable.Range(
|
||||
immutableValue.data._start,
|
||||
immutableValue.data._end,
|
||||
immutableValue.data._start!,
|
||||
immutableValue.data._end!,
|
||||
immutableValue.data._step,
|
||||
);
|
||||
case 'ImmutableRepeat':
|
||||
|
|
|
@ -1211,9 +1211,6 @@ importers:
|
|||
'@babel/runtime':
|
||||
specifier: ^7.26.9
|
||||
version: 7.26.9
|
||||
immutable:
|
||||
specifier: ^5.0.3
|
||||
version: 5.0.3
|
||||
devDependencies:
|
||||
'@babel/cli':
|
||||
specifier: ^7.26.4
|
||||
|
|
Loading…
Reference in New Issue
Block a user