Add API service interface

This commit is contained in:
Tee
2021-02-25 22:08:02 -05:00
parent 669e6db54c
commit 657605eaa0

View File

@ -0,0 +1,7 @@
import { Query } from "./query";
export interface APIService {
find: <T>(id: string) => Promise<T[]>;
all: <T>() => Promise<T[]>;
where: <T>(params: Query[]) => Promise<T[]>;
}