@compas/store
Version:
Postgres & S3-compatible wrappers for common things
29 lines (28 loc) • 1.76 kB
TypeScript
/**
* @param {import("../common/types.js").QueryExpansionStoreFile|any} value
* @returns {Either<import("../common/types.js").QueryExpansionStoreFile, ValidatorErrorMap>}
*/
export function validateQueryExpansionStoreFile(value: import("../common/types.js").QueryExpansionStoreFile | any): Either<import("../common/types.js").QueryExpansionStoreFile, ValidatorErrorMap>;
/**
* @param {import("../common/types.js").QueryExpansionStoreJob|any} value
* @returns {Either<import("../common/types.js").QueryExpansionStoreJob, ValidatorErrorMap>}
*/
export function validateQueryExpansionStoreJob(value: import("../common/types.js").QueryExpansionStoreJob | any): Either<import("../common/types.js").QueryExpansionStoreJob, ValidatorErrorMap>;
/**
* @param {import("../common/types.js").QueryExpansionStoreSessionStore|any} value
* @returns {Either<import("../common/types.js").QueryExpansionStoreSessionStore, ValidatorErrorMap>}
*/
export function validateQueryExpansionStoreSessionStore(value: import("../common/types.js").QueryExpansionStoreSessionStore | any): Either<import("../common/types.js").QueryExpansionStoreSessionStore, ValidatorErrorMap>;
/**
* @param {import("../common/types.js").QueryExpansionStoreSessionStoreToken|any} value
* @returns {Either<import("../common/types.js").QueryExpansionStoreSessionStoreToken, ValidatorErrorMap>}
*/
export function validateQueryExpansionStoreSessionStoreToken(value: import("../common/types.js").QueryExpansionStoreSessionStoreToken | any): Either<import("../common/types.js").QueryExpansionStoreSessionStoreToken, ValidatorErrorMap>;
export type Either<T, E> = {
value: T;
error?: never;
} | {
value?: never;
error: E;
};
export type ValidatorErrorMap = Record<string, any | undefined>;