mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-06-29 09:23:27 +03:00
Updates
This commit is contained in:
parent
7723f58150
commit
bdb9e3f807
|
@ -29,8 +29,7 @@
|
||||||
"prepublish": "pnpm run type-check && pnpm run lint"
|
"prepublish": "pnpm run type-check && pnpm run lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.9",
|
"@babel/runtime": "^7.26.9"
|
||||||
"immutable": "^5.0.3"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.26.4",
|
"@babel/cli": "^7.26.4",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import type Immutable from 'immutable';
|
|
||||||
import { compose } from 'redux';
|
import { compose } from 'redux';
|
||||||
import type { Action, ActionCreator, StoreEnhancer } 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.
|
* 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`.
|
* 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...
|
* 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.
|
* 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);
|
return immutable.List(immutableValue.data);
|
||||||
case 'ImmutableRange':
|
case 'ImmutableRange':
|
||||||
return immutable.Range(
|
return immutable.Range(
|
||||||
immutableValue.data._start,
|
immutableValue.data._start!,
|
||||||
immutableValue.data._end,
|
immutableValue.data._end!,
|
||||||
immutableValue.data._step,
|
immutableValue.data._step,
|
||||||
);
|
);
|
||||||
case 'ImmutableRepeat':
|
case 'ImmutableRepeat':
|
||||||
|
|
|
@ -1211,9 +1211,6 @@ importers:
|
||||||
'@babel/runtime':
|
'@babel/runtime':
|
||||||
specifier: ^7.26.9
|
specifier: ^7.26.9
|
||||||
version: 7.26.9
|
version: 7.26.9
|
||||||
immutable:
|
|
||||||
specifier: ^5.0.3
|
|
||||||
version: 5.0.3
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@babel/cli':
|
'@babel/cli':
|
||||||
specifier: ^7.26.4
|
specifier: ^7.26.4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user