@@ -9,7 +9,7 @@ import type {
99 Unsubscribe ,
1010 ReducersMapObject ,
1111} from 'redux' ;
12- import type { Patch } from 'mutative' ;
12+ import type { Patch as IPatch , Patches as IPatches } from 'mutative' ;
1313import type { EnhancerOptions } from 'redux-devtools-extension' ;
1414import type {
1515 Container ,
@@ -32,12 +32,17 @@ import {
3232 initStateKey ,
3333 unsubscriptionsKey ,
3434 enableInspectorKey ,
35+ strictKey ,
3536} from './constants' ;
3637import { PluginModule } from './core' ;
3738
39+ export type Patch = IPatch < true > ;
40+
41+ export type Patches = IPatches < true > ;
42+
3843export interface DevOptions {
3944 /**
40- * Enable react strict mode.
45+ * Enable strict mode for React and Mutative .
4146 */
4247 strict ?: boolean ;
4348 /**
@@ -78,6 +83,7 @@ export interface Service<T extends Record<string, any> = Record<string, any>> {
7883 readonly [ loaderKey ] ?: Loader ;
7984 readonly [ enablePatchesKey ] ?: boolean ;
8085 readonly [ enableAutoFreezeKey ] ?: boolean ;
86+ readonly [ strictKey ] ?: boolean ;
8187 readonly [ enableInspectorKey ] ?: boolean ;
8288 readonly [ subscriptionsKey ] ?: Subscriptions ;
8389 readonly [ unsubscriptionsKey ] ?: Set < Unsubscribe > ;
@@ -103,8 +109,8 @@ export interface ReactantAction<T = any> extends Action<string | symbol> {
103109 state : Record < string , T > ;
104110 params : any [ ] ;
105111 _reactant : typeof actionIdentifier ;
106- _patches ?: Patch < true > [ ] ;
107- _inversePatches ?: Patch < true > [ ] ;
112+ _patches ?: Patch [ ] ;
113+ _inversePatches ?: Patch [ ] ;
108114}
109115
110116export type StateMapObject < T extends Record < string , Function > > = {
0 commit comments