Skip to content

Commit

Permalink
feat(obj): changed "interfaces" into "types"
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Ricart <alberto@synadia.com>
  • Loading branch information
aricart committed Dec 5, 2024
1 parent b184128 commit 08f36ae
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion core/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
"@nats-io/nkeys": "jsr:@nats-io/nkeys@~2.0.0-3",
"@nats-io/nuid": "jsr:@nats-io/nuid@2.0.1-2"
}
}
}
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"typedoc": "^0.26.10",
"typescript": "^5.5.4"
}
}
}
2 changes: 1 addition & 1 deletion jetstream/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47"
}
}
}
2 changes: 1 addition & 1 deletion jetstream/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"test_helpers": "../test_helpers/mod.ts",
"@std/io": "jsr:@std/io@0.224.0"
}
}
}
2 changes: 1 addition & 1 deletion jetstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"typedoc": "^0.26.10",
"typescript": "^5.6.3"
}
}
}
2 changes: 1 addition & 1 deletion kv/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-34"
}
}
}
2 changes: 1 addition & 1 deletion kv/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2",
"@std/io": "jsr:@std/io@0.224.0"
}
}
}
2 changes: 1 addition & 1 deletion kv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"typedoc": "^0.26.10",
"typescript": "^5.6.3"
}
}
}
4 changes: 2 additions & 2 deletions obj/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-29",
"version": "3.0.0-30",
"exports": {
".": "./src/mod.ts",
"./internal": "./src/internal_mod.ts"
Expand Down Expand Up @@ -36,4 +36,4 @@
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47",
"@nats-io/jetstream": "jsr:@nats-io/jetstream@~3.0.0-34"
}
}
}
2 changes: 1 addition & 1 deletion obj/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2",
"@std/io": "jsr:@std/io@0.224.0"
}
}
}
4 changes: 2 additions & 2 deletions obj/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/obj",
"version": "3.0.0-29",
"version": "3.0.0-30",
"files": [
"lib/",
"LICENSE",
Expand Down Expand Up @@ -43,4 +43,4 @@
"typedoc": "^0.26.10",
"typescript": "^5.6.3"
}
}
}
16 changes: 8 additions & 8 deletions obj/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ export type ObjectStoreMeta = {
metadata?: Record<string, string>;
};

export interface ObjectWatchInfo extends ObjectInfo {
export type ObjectWatchInfo = ObjectInfo & {
isUpdate: boolean;
}
};

export interface ObjectInfo extends ObjectStoreMeta {
export type ObjectInfo = ObjectStoreMeta & {
/**
* The name of the bucket where the object is stored.
*/
Expand Down Expand Up @@ -93,12 +93,12 @@ export interface ObjectInfo extends ObjectStoreMeta {
* The revision number for the entry
*/
revision: number;
}
};

/**
* A link reference
*/
export interface ObjectLink {
export type ObjectLink = {
/**
* The object store the source data
*/
Expand All @@ -108,7 +108,7 @@ export interface ObjectLink {
* set it is a complete object store reference.
*/
name?: string;
}
};

export type ObjectStoreStatus = {
/**
Expand Down Expand Up @@ -232,7 +232,7 @@ export type ObjectStorePutOpts = {
previousRevision?: number;
};

export interface ObjectStore {
export type ObjectStore = {
/**
* Returns the ObjectInfo of the named entry. Or null if the
* entry doesn't exist.
Expand Down Expand Up @@ -342,4 +342,4 @@ export interface ObjectStore {
* Destroys the object store and all its entries.
*/
destroy(): Promise<boolean>;
}
};
2 changes: 1 addition & 1 deletion services/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
"imports": {
"@nats-io/nats-core": "jsr:@nats-io/nats-core@~3.0.0-47"
}
}
}
2 changes: 1 addition & 1 deletion services/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2",
"@std/io": "jsr:@std/io@0.224.0"
}
}
}
2 changes: 1 addition & 1 deletion services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"typedoc": "^0.26.10",
"typescript": "^5.6.3"
}
}
}
2 changes: 1 addition & 1 deletion transport-deno/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"@nats-io/nkeys": "jsr:@nats-io/nkeys@~2.0.0-3",
"@nats-io/nuid": "jsr:@nats-io/nuid@~2.0.1-2"
}
}
}
4 changes: 2 additions & 2 deletions transport-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
"typescript": "5.6.3",
"@nats-io/jetstream": "3.0.0-34",
"@nats-io/kv": "3.0.0-28",
"@nats-io/obj": "3.0.0-29"
"@nats-io/obj": "3.0.0-30"
}
}
}

0 comments on commit 08f36ae

Please sign in to comment.