@nats-io/obj 3.0.0-29 → 3.0.0-30

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.
Files changed (2) hide show
  1. package/lib/types.d.ts +8 -8
  2. package/package.json +1 -1
package/lib/types.d.ts CHANGED
@@ -31,10 +31,10 @@ export type ObjectStoreMeta = {
31
31
  options?: ObjectStoreMetaOptions;
32
32
  metadata?: Record<string, string>;
33
33
  };
34
- export interface ObjectWatchInfo extends ObjectInfo {
34
+ export type ObjectWatchInfo = ObjectInfo & {
35
35
  isUpdate: boolean;
36
- }
37
- export interface ObjectInfo extends ObjectStoreMeta {
36
+ };
37
+ export type ObjectInfo = ObjectStoreMeta & {
38
38
  /**
39
39
  * The name of the bucket where the object is stored.
40
40
  */
@@ -67,11 +67,11 @@ export interface ObjectInfo extends ObjectStoreMeta {
67
67
  * The revision number for the entry
68
68
  */
69
69
  revision: number;
70
- }
70
+ };
71
71
  /**
72
72
  * A link reference
73
73
  */
74
- export interface ObjectLink {
74
+ export type ObjectLink = {
75
75
  /**
76
76
  * The object store the source data
77
77
  */
@@ -81,7 +81,7 @@ export interface ObjectLink {
81
81
  * set it is a complete object store reference.
82
82
  */
83
83
  name?: string;
84
- }
84
+ };
85
85
  export type ObjectStoreStatus = {
86
86
  /**
87
87
  * The bucket name
@@ -202,7 +202,7 @@ export type ObjectStorePutOpts = {
202
202
  */
203
203
  previousRevision?: number;
204
204
  };
205
- export interface ObjectStore {
205
+ export type ObjectStore = {
206
206
  /**
207
207
  * Returns the ObjectInfo of the named entry. Or null if the
208
208
  * entry doesn't exist.
@@ -287,4 +287,4 @@ export interface ObjectStore {
287
287
  * Destroys the object store and all its entries.
288
288
  */
289
289
  destroy(): Promise<boolean>;
290
- }
290
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nats-io/obj",
3
- "version": "3.0.0-29",
3
+ "version": "3.0.0-30",
4
4
  "files": [
5
5
  "lib/",
6
6
  "LICENSE",