UNPKG

couchbase-index-manager

Version:
13 lines (12 loc) 443 B
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>;