fix: exports browser default query module

This commit is contained in:
2024-11-02 23:50:46 +08:00
parent 61d949cc7c
commit 63cb0162df
3 changed files with 11 additions and 5 deletions

View File

@@ -1,8 +1,9 @@
import { adapter } from './adapter.ts';
import { QueryWs, QueryWsOpts } from './ws.ts';
export { QueryOpts, QueryWs };
import { Query } from './query.ts';
export { QueryOpts, QueryWs, Query, QueryWsOpts, adapter };
type QueryOpts = {
url?: string;
adapter?: typeof adapter;
@@ -50,5 +51,3 @@ export class QueryClient<U = any, V = any> extends Query<U, V> {
}
}
export const client = new QueryClient();
export { adapter };