document-model 1.0.7 → 1.0.8
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { baseReducer } from '../reducer';
|
|
2
|
-
import { Action, BaseAction, Document, ExtendedState, ImmutableStateReducer, Reducer } from '../types';
|
|
2
|
+
import { Action, BaseAction, Document, ExtendedState, ImmutableStateReducer, Reducer, Immutable } from '../types';
|
|
3
3
|
export declare function isBaseAction(action: Action): action is BaseAction;
|
|
4
4
|
/**
|
|
5
5
|
* Helper function to be used by action creators.
|
|
@@ -54,4 +54,4 @@ export declare const createExtendedState: <S>(initialState?: Partial<ExtendedSta
|
|
|
54
54
|
export declare const createDocument: <S, A extends Action>(initialState?: Partial<ExtendedState<Partial<S>>> | undefined, createState?: ((state?: Partial<S> | undefined) => S) | undefined) => Document<S, A>;
|
|
55
55
|
export declare const hashDocument: (document: Document) => string;
|
|
56
56
|
export declare const hashKey: (date?: Date, randomLimit?: number) => string;
|
|
57
|
-
export declare function readOnly<T>(value: T):
|
|
57
|
+
export declare function readOnly<T>(value: T): Immutable<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { baseReducer } from '../reducer';
|
|
2
|
-
import { Action, BaseAction, Document, ExtendedState, ImmutableStateReducer, Reducer } from '../types';
|
|
2
|
+
import { Action, BaseAction, Document, ExtendedState, ImmutableStateReducer, Reducer, Immutable } from '../types';
|
|
3
3
|
export declare function isBaseAction(action: Action): action is BaseAction;
|
|
4
4
|
/**
|
|
5
5
|
* Helper function to be used by action creators.
|
|
@@ -54,4 +54,4 @@ export declare const createExtendedState: <S>(initialState?: Partial<ExtendedSta
|
|
|
54
54
|
export declare const createDocument: <S, A extends Action>(initialState?: Partial<ExtendedState<Partial<S>>> | undefined, createState?: ((state?: Partial<S> | undefined) => S) | undefined) => Document<S, A>;
|
|
55
55
|
export declare const hashDocument: (document: Document) => string;
|
|
56
56
|
export declare const hashKey: (date?: Date, randomLimit?: number) => string;
|
|
57
|
-
export declare function readOnly<T>(value: T):
|
|
57
|
+
export declare function readOnly<T>(value: T): Immutable<T>;
|