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.
@@ -7,6 +7,7 @@ import { FileInput } from './utils';
7
7
  export { z } from './schema';
8
8
  export type * from './schema/types';
9
9
  export type { FileInput } from './utils';
10
+ export type { Immutable } from 'immer';
10
11
  /**
11
12
  * Defines the basic structure of an action.
12
13
  *
@@ -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): import("immer").Immutable<T>;
57
+ export declare function readOnly<T>(value: T): Immutable<T>;
@@ -7,6 +7,7 @@ import { FileInput } from './utils';
7
7
  export { z } from './schema';
8
8
  export type * from './schema/types';
9
9
  export type { FileInput } from './utils';
10
+ export type { Immutable } from 'immer';
10
11
  /**
11
12
  * Defines the basic structure of an action.
12
13
  *
@@ -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): import("immer").Immutable<T>;
57
+ export declare function readOnly<T>(value: T): Immutable<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-model",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": false,
6
6
  "files": [