@instantdb/core
Version:
Instant's core local abstraction
19 lines • 744 B
TypeScript
import type { InstaQLParams, InstaQLResponse } from './queryTypes.ts';
import { InstantUnknownSchema } from './schemaTypes.ts';
/**
* The purpose of these sanity checks:
* If we make changes and something breaks, our build will fail.
*
* AFAIK we _could_ write this in our `tests` folder.
* The latest version of `vitest` does support `assertType`, but:
* * it's easy to get false positives if configured incorrectly
* * the api is more vebose than this
*/
export declare function dummyQuery<Q extends InstaQLParams<InstantUnknownSchema>>(_query: Q): InstaQLResponse<InstantUnknownSchema, Q>;
export interface ExUser {
name: string;
}
export interface ExPost {
title: string;
}
//# sourceMappingURL=sanityCheckQueries.d.ts.map