@compas/store
Version:
Postgres & S3-compatible wrappers for common things
29 lines (28 loc) • 1.75 kB
TypeScript
/**
* @param {import("../common/types.js").QueryResultStoreFileInput|any} value
* @returns {Either<import("../common/types.js").QueryResultStoreFile, ValidatorErrorMap>}
*/
export function validateQueryResultStoreFile(value: import("../common/types.js").QueryResultStoreFileInput | any): Either<import("../common/types.js").QueryResultStoreFile, ValidatorErrorMap>;
/**
* @param {import("../common/types.js").QueryResultStoreJobInput|any} value
* @returns {Either<import("../common/types.js").QueryResultStoreJob, ValidatorErrorMap>}
*/
export function validateQueryResultStoreJob(value: import("../common/types.js").QueryResultStoreJobInput | any): Either<import("../common/types.js").QueryResultStoreJob, ValidatorErrorMap>;
/**
* @param {import("../common/types.js").QueryResultStoreSessionStoreInput|any} value
* @returns {Either<import("../common/types.js").QueryResultStoreSessionStore, ValidatorErrorMap>}
*/
export function validateQueryResultStoreSessionStore(value: import("../common/types.js").QueryResultStoreSessionStoreInput | any): Either<import("../common/types.js").QueryResultStoreSessionStore, ValidatorErrorMap>;
/**
* @param {import("../common/types.js").QueryResultStoreSessionStoreTokenInput|any} value
* @returns {Either<import("../common/types.js").QueryResultStoreSessionStoreToken, ValidatorErrorMap>}
*/
export function validateQueryResultStoreSessionStoreToken(value: import("../common/types.js").QueryResultStoreSessionStoreTokenInput | any): Either<import("../common/types.js").QueryResultStoreSessionStoreToken, ValidatorErrorMap>;
export type Either<T, E> = {
value: T;
error?: never;
} | {
value?: never;
error: E;
};
export type ValidatorErrorMap = Record<string, any | undefined>;