UNPKG

@dossierhq/integration-test

Version:

Integration test to ensure that different Dossier database adapters work as expected.

4 lines (3 loc) 333 B
import { type ErrorType, type PromiseResult } from '@dossierhq/core'; import type { AppDossierClient } from '../SchemaTypes.js'; export declare function withSchemaAdvisoryLock<TOk, TError extends ErrorType>(client: AppDossierClient, callback: () => PromiseResult<TOk, TError>): PromiseResult<TOk, TError | typeof ErrorType.Generic>;