@geekbears/gb-mongoose-keywords-plugin
Version:
A Mongoose plugin for keyword generation
10 lines (9 loc) • 476 B
TypeScript
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;