1 | import * as mongoose from 'mongoose';
|
2 | import type { AnyParamConstructor, IBuildSchemaOptions, IModelOptions, INamingOptions } from '../types';
|
3 | /**
|
4 | * Internal Schema Builder for Classes
|
5 | * This Function should not be used directly outside of typegoose internals, use "buildSchema" from typegoose.ts directly
|
6 | * @param cl The Class to build a Model from
|
7 | * @param origSch A Schema to clone and extend onto
|
8 | * @param opt Overwrite SchemaOptions (Merged with Decorator Options)
|
9 | * @param isFinalSchema Set if this Schema is the final (top-level) to build, only when "true" are discriminators, hooks, virtuals, etc applied
|
10 | * @param overwriteNaming Overwrite options for name generation
|
11 | * @param extraOptions Extra options to affect what needs to be done
|
12 | * @returns Returns the Build Schema
|
13 | * @private
|
14 | */
|
15 | export declare function _buildSchema<U extends AnyParamConstructor<any>>(cl: U, origSch?: mongoose.Schema<any>, opt?: IModelOptions, isFinalSchema?: boolean, overwriteNaming?: INamingOptions, extraOptions?: IBuildSchemaOptions): mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
16 | [x: string]: any;
|
17 | }>;
|