Skip to content

Commit

Permalink
fix: Repository#delete -> Repository#remove
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Dec 23, 2022
1 parent 54877c4 commit b4e06a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export interface Repository<
FetchParams = never,
ListParams = undefined,
> {
readonly [Symbol.asyncIterator]?: () => AsyncIterableIterator<Entity[]>;

readonly fetch?:
| ((id: string) => Promise<Entity>)
| ((params?: FetchParams) => Promise<Entity>);
Expand All @@ -34,5 +32,5 @@ export interface Repository<
| ((id: string, params: UpdateParams) => Promise<Entity>)
| ((params: UpdateParams) => Promise<Entity>);

readonly delete?: (id: string) => Promise<void>;
readonly remove?: (id: string) => Promise<void>;
}

0 comments on commit b4e06a5

Please sign in to comment.