Skip to content

Commit c369a94

Browse files
committed
fix: addressed interfaces issues
1 parent 5b06e7e commit c369a94

18 files changed

+126
-118
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BaseError } from "make-error";
22
export default class ConflictingItemError extends BaseError {
33
readonly itemName: string;
4-
readonly itemId: string;
5-
constructor(itemName: string, itemId: string);
4+
readonly itemId?: string;
5+
constructor(itemName: string, itemId?: string);
66
}

dist/errors/conflictingItemError.js.map

Lines changed: 1 addition & 1 deletion
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BaseError } from "make-error";
22
export default class ItemNotFoundError extends BaseError {
33
readonly itemName: string;
4-
readonly itemId: string;
5-
constructor(itemName: string, itemId: string);
4+
readonly itemId?: string;
5+
constructor(itemName: string, itemId?: string);
66
}

dist/errors/itemNotFoundError.js.map

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

dist/facade.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ReplaceItem from "./functions/ReplaceItem";
88
import UpdateItem from "./functions/UpdateItem";
99
import Item from "./interfaces/Item";
1010
export default interface Facade<I extends Item> {
11-
readonly countItems: CountItems<I>;
11+
readonly countItems?: CountItems<I>;
1212
readonly createItem: CreateItem<I>;
1313
readonly getItem: GetItem<I>;
1414
readonly getItems: GetItems<I>;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Options from "../../interfaces/Options";
2-
import { TestItem } from "../utils/testItem";
1+
import Options from '../../interfaces/Options';
2+
import { TestItem } from '../utils/testItem';
33
declare const _default: ({ facade }: Options<TestItem>) => void;
44
export default _default;

dist/functions/countItems/test.js

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

dist/functions/countItems/test.js.map

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

dist/functions/createItem/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Item from '../../interfaces/Item';
22
export interface Options<I extends Item> {
3-
readonly id: string;
3+
readonly id?: string;
44
readonly item: I;
55
}
66
export interface Result<I extends Item> {

dist/testFacade.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TestItem } from "./functions/utils/testItem";
2-
import Options from "./interfaces/Options";
1+
import { TestItem } from './functions/utils/testItem';
2+
import Options from './interfaces/Options';
33
declare const _default: (options: Options<TestItem>) => void;
44
export default _default;

0 commit comments

Comments
 (0)