deno.land / x / mongoose@6.7.5 / types / virtuals.d.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare module 'mongoose' { type VirtualPathFunctions<DocType = {}, PathValueType = unknown, TInstanceMethods = {}> = { get?: TVirtualPathFN<DocType, PathValueType, TInstanceMethods, PathValueType>; set?: TVirtualPathFN<DocType, PathValueType, TInstanceMethods, void>; options?: VirtualTypeOptions<HydratedDocument<DocType, TInstanceMethods>, DocType>; };
type TVirtualPathFN<DocType = {}, PathType = unknown, TInstanceMethods = {}, TReturn = unknown> = <T = HydratedDocument<DocType, TInstanceMethods>>(this: Document<any, any, DocType> & DocType, value: PathType, virtual: VirtualType<T>, doc: Document<any, any, DocType> & DocType) => TReturn;
type SchemaOptionsVirtualsPropertyType<DocType = any, VirtualPaths = Record<any, unknown>, TInstanceMethods = {}> = { [K in keyof VirtualPaths]: VirtualPathFunctions<IsItRecordAndNotAny<DocType> extends true ? DocType : any, VirtualPaths[K], TInstanceMethods> };}
mongoose

Version Info

Tagged at
a year ago