This commit is contained in:
Nathan Bierema 2025-03-05 16:37:14 -05:00
parent 7723f58150
commit bdb9e3f807
4 changed files with 5 additions and 10 deletions

View File

@ -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",

View File

@ -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.

View File

@ -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':

View File

@ -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