Skip to content

Commit cd80948

Browse files
committed
fix
1 parent c73de16 commit cd80948

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+176
-1653
lines changed

src/Facade.ts renamed to dist/Facade.d.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ import GetItem from "./functions/getItem";
66
import GetItems from "./functions/getItems";
77
import ReplaceItem from "./functions/replaceItem";
88
import UpdateItem from "./functions/updateItem";
9-
import Item from "./interfaces/item";
10-
9+
import Item from "./interfaces/Item";
1110
export default interface Facade<I extends Item> {
12-
readonly createItem: CreateItem<I>;
13-
readonly getItem: GetItem<I>;
14-
readonly getItems: GetItems<I>;
15-
readonly deleteItem: DeleteItem<I>;
16-
readonly deleteItems: DeleteItems<I>;
17-
readonly updateItem: UpdateItem<I>;
18-
readonly replaceItem: ReplaceItem<I>;
19-
readonly countItems: CountItems<I>;
11+
readonly createItem: CreateItem<I>;
12+
readonly getItem: GetItem<I>;
13+
readonly getItems: GetItems<I>;
14+
readonly deleteItem: DeleteItem<I>;
15+
readonly deleteItems: DeleteItems<I>;
16+
readonly updateItem: UpdateItem<I>;
17+
readonly replaceItem: ReplaceItem<I>;
18+
readonly countItems: CountItems<I>;
2019
}

dist/Facade.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Facade.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { BaseError } from "make-error";
2+
export default class ConflictingItemError extends BaseError {
3+
readonly itemName: string;
4+
readonly itemId: string;
5+
constructor(itemName: string, itemId: string);
6+
}

dist/errors/ConflictingItemError.js

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/errors/ConflictingItemError.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/errors/ItemNotFoundError.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { BaseError } from "make-error";
2+
export default class ItemNotFoundError extends BaseError {
3+
readonly itemName: string;
4+
readonly itemId: string;
5+
constructor(itemName: string, itemId: string);
6+
}

dist/errors/ItemNotFoundError.js

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/errors/ItemNotFoundError.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/interfaces/Cursor.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export declare const start: undefined;
2+
declare type Cursor = string | typeof start;
3+
export default Cursor;

0 commit comments

Comments
 (0)