feat: return Provide Typed

This commit is contained in:
2019-06-12 18:58:46 +08:00
parent 9fdb56dadb
commit a99a7b9d3b
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
export const DBClient = Symbol.for('DBClient')
export interface DBClient<T = any> {
getProvide(): any;
getProvide<P>(): P;
setTable(table: string): void;
find(filter: object): Promise<T[]>;
findOne(filter: Object): Promise<T>;