9 lines
447 B
TypeScript
9 lines
447 B
TypeScript
import { type Signal } from '@angular/core';
|
|
import type { SQLocal } from '../client.js';
|
|
import type { ReactiveQueryStatus, StatementInput } from '../types.js';
|
|
export declare function useReactiveQuery<Result extends Record<string, any>>(db: SQLocal | Signal<SQLocal>, query: StatementInput<Result> | Signal<StatementInput<Result>>): {
|
|
data: Signal<Result[]>;
|
|
error: Signal<Error | undefined>;
|
|
status: Signal<ReactiveQueryStatus>;
|
|
};
|