UNPKG

ottoman

Version:
7 lines (6 loc) 507 B
import { PopulateSelectBaseType } from '../model/populate.types'; import { ReferenceType, Schema } from '../schema'; export declare const extractSchemaReferencesFields: (schema: Schema) => any; export declare const extractSchemaReferencesFromGivenFields: (fields: any, schema: Schema) => Record<string, ReferenceType>; export declare const getSchemaType: (fieldName: any, schema: any) => any; export declare const extractPopulateFieldsFromObject: ({ select, populate }: PopulateSelectBaseType) => string[];