UNPKG

@superlayer/core

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