chore: type

This commit is contained in:
Chareice 2024-01-27 19:32:25 +08:00
parent c79d535cbb
commit ca71079298
No known key found for this signature in database

View File

@ -1,4 +1,5 @@
import { IModel, IRepository } from './types'; import { IModel, IRepository } from './types';
import * as console from 'console';
export class Repository implements IRepository { export class Repository implements IRepository {
async create(options) { async create(options) {
@ -12,4 +13,12 @@ export class Repository implements IRepository {
return {}; return {};
} }
async destroy(options) {} async destroy(options) {}
count(options?: any): Promise<Number> {
return Promise.resolve(undefined);
}
findAndCount(options?: any): Promise<[IModel[], Number]> {
return Promise.resolve([[], undefined]);
}
} }