couchbase-index-manager
Version:
Manage Couchbase indexes during the CI/CD process
13 lines (12 loc) • 443 B
TypeScript
import { IndexConfigurationBase } from "./types";
export type ValidatorSetBase<T> = {
[key in keyof T]?: (this: T, val: any) => void;
};
export interface ValidatorSetPostValidate<T> {
post_validate?: (this: T) => void;
}
export type ValidatorSet<T> = ValidatorSetBase<T> & ValidatorSetPostValidate<T>;
/**
* Validators for the incoming index properties.
*/
export declare const IndexValidators: ValidatorSet<IndexConfigurationBase>;