Skip to content

Commit

Permalink
refactor(storage-server): use types from engine
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 28, 2022
1 parent ae35ca2 commit b4bee2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/storage-engine/src/storage-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {readJsonFile, writeJsonFile} from './util.js';

import type {DataStorage, AlwatrStorageEngineConfig, AlwatrDocumentObject} from './type.js';

export {DataStorage, AlwatrStorageEngineConfig};
export {DataStorage, AlwatrStorageEngineConfig, AlwatrDocumentObject};

alwatrRegisteredList.push({
name: '@alwatr/storage-engine',
Expand Down
3 changes: 1 addition & 2 deletions packages/service/storage-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
"dependencies": {
"@alwatr/logger": "~0.23.0",
"@alwatr/nano-server": "~0.23.0",
"@alwatr/storage-engine": "~0.23.0",
"@alwatr/fetch": "~0.23.0"
"@alwatr/storage-engine": "~0.23.0"
},
"devDependencies": {
"@types/node": "~18.11.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/service/storage-server/src/route/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {config, logger} from '../lib/config.js';
import {nanoServer} from '../lib/nano-server.js';
import {storageProvider} from '../lib/storage-provider.js';

import type {AlwatrDocumentObject} from '@alwatr/fetch';
import type {AlwatrConnection} from '@alwatr/nano-server';
import type {AlwatrDocumentObject} from '@alwatr/storage-engine';

nanoServer.route('PATCH', 'all', updateDocument);

Expand Down

0 comments on commit b4bee2c

Please sign in to comment.