temp
This commit is contained in:
13
src/query.ts
13
src/query.ts
@@ -204,3 +204,16 @@ export class Query {
|
||||
}
|
||||
|
||||
export { adapter };
|
||||
|
||||
export class BaseQuery<T extends Query> {
|
||||
query: T;
|
||||
constructor({ query }: { query: T }) {
|
||||
this.query = query;
|
||||
}
|
||||
post<R = any, P = any>(data: P, options?: DataOpts): Promise<Result<R>> {
|
||||
return this.query.post(data, options);
|
||||
}
|
||||
get<R = any, P = any>(data: P, options?: DataOpts): Promise<Result<R>> {
|
||||
return this.query.get(data, options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user