@junobuild/core-peer 0.1.7 → 0.1.9
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.
- package/LICENSE +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/doc.types.d.ts +7 -2
- package/dist/types/types/utility.types.d.ts +3 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { ListOrder, ListPaginate, ListParams, ListResults } from './types/list.t
|
|
|
15
15
|
export type * from './types/satellite.types';
|
|
16
16
|
export type * from './types/storage.types';
|
|
17
17
|
export type * from './types/subscription.types';
|
|
18
|
+
export type * from './types/utility.types';
|
|
18
19
|
export type { Asset, AssetEncoding, AssetKey, ENCODING_TYPE, Storage };
|
|
19
20
|
/**
|
|
20
21
|
* Initializes Juno with the provided optional environment parameters.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExcludeDate } from './utility.types';
|
|
1
2
|
/**
|
|
2
3
|
* Represents a document stored in a collection.
|
|
3
4
|
* @template D - The type of data contained in the document.
|
|
@@ -16,9 +17,13 @@ export interface Doc<D> {
|
|
|
16
17
|
description?: string;
|
|
17
18
|
/**
|
|
18
19
|
* The data contained in the document.
|
|
19
|
-
*
|
|
20
|
+
*
|
|
21
|
+
* Note that it is advised not to use native `Date` objects for fields,
|
|
22
|
+
* which is why they are recursively excluded using TypeScript.
|
|
23
|
+
*
|
|
24
|
+
* @type {ExcludeDate<D>}
|
|
20
25
|
*/
|
|
21
|
-
data: D
|
|
26
|
+
data: ExcludeDate<D>;
|
|
22
27
|
/**
|
|
23
28
|
* The owner of the document.
|
|
24
29
|
* @type {string}
|
package/package.json
CHANGED