Skip to content

Commit e373e7f

Browse files
Add ValidCategoryQuery
1 parent 59ee29f commit e373e7f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
import ValidCategory,
3+
{Category, ValidCategoryInitializer, ValidCategoryMutator} from "../../types/db/public/ValidCategory";
4+
import {SimpleCrudQueryable} from "../Queryable";
5+
6+
const simpleCrudQueries:
7+
SimpleCrudQueryable<ValidCategory, ValidCategoryInitializer, ValidCategoryMutator, Category> = {
8+
async create(object: ValidCategoryInitializer): Promise<ValidCategory> {
9+
throw new Error("Method not implemented.");
10+
},
11+
12+
async read(category: Category): Promise<ValidCategory> {
13+
throw new Error("Method not implemented.");
14+
},
15+
16+
async readAll(): Promise<ValidCategory[]> {
17+
throw new Error("Method not implemented.");
18+
},
19+
20+
async update(category: Category, mutateObject: ValidCategoryMutator): Promise<ValidCategory> {
21+
throw new Error("Method not implemented.");
22+
},
23+
24+
async delete(category: Category): Promise<boolean> {
25+
throw new Error("Method not implemented.");
26+
}
27+
};
28+
29+
export default {
30+
...simpleCrudQueries
31+
};

0 commit comments

Comments
 (0)