Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions typescript/packages/common-memory/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import type { Reference } from "merkle-reference";

export type { Reference };

export type Command = {
watch?: In<Selector>;
unwatch?: In<Selector>;
};

/**
* Unique identifier for the store.
*/
Expand Down
4 changes: 0 additions & 4 deletions typescript/packages/common-memory/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ interface MemoryServiceSession {
router: Router.Router;
}

export type Command = {
watch?: In<Selector>;
unwatch?: In<Selector>;
};

class Service implements MemoryService {
constructor(public router: Router.Router) {}
Expand Down
3 changes: 2 additions & 1 deletion typescript/packages/common-memory/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@commontools/memory",
"type": "module",
"exports": {
".": "./lib.ts"
".": "./interface.ts"
},
"dependencies": {
"merkle-reference": "^2.0.1"
Expand Down