UNPKG

@geekbears/gb-mongoose-keywords-plugin

Version:
10 lines (9 loc) 476 B
import { Schema } from 'mongoose'; import { IKeywordOptions, IValidatedKeywordOptions } from '../interfaces'; /** * Validate the provided options by checking if specified paths and virtuals exist. Handle default omitted words * @param schema the source schema * @param options the provided options * @returns a validated set of options with defaults applied */ export declare const validateOptions: (schema: Schema, options: IKeywordOptions) => IValidatedKeywordOptions;