UNPKG

@instantdb/core

Version:
19 lines 741 B
import type { InstaQLResponse, ValidQuery } 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 ValidQuery<Q, InstantUnknownSchema>>(_query: Q): InstaQLResponse<InstantUnknownSchema, Q>; export interface ExUser { name: string; } export interface ExPost { title: string; } //# sourceMappingURL=sanityCheckQueries.d.ts.map