UNPKG

2.11 kBTypeScriptView Raw
1/**
2 * Collection of Reflect Types for easy maintenance
3 */
4export declare enum DecoratorKeys {
5 /** Get the Typescript assigned Type at runtime */
6 Type = "design:type",
7 /**
8 * "@prop" Cache
9 * -> Use only for a class
10 */
11 PropCache = "typegoose:properties",
12 /**
13 * Storage location for Model Options
14 * -> Use only for a class
15 */
16 ModelOptions = "typegoose:options",
17 /**
18 * Storage location for Indexes
19 * -> Use only for a class
20 */
21 Index = "typegoose:indexes",
22 /**
23 * Storage location for Search Indexes
24 * -> Use only for a class
25 */
26 SearchIndex = "typegoose:searchIndexes",
27 /**
28 * Storage location for Plugins
29 * -> Use only for a class
30 */
31 Plugins = "typegoose:plugins",
32 /**
33 * Storage location for Pre-Hooks
34 * -> Use only for a class
35 */
36 HooksPre = "typegoose:hooksPre",
37 /**
38 * Storage location for Post-Hooks
39 * -> Use only for a class
40 */
41 HooksPost = "typegoose:hooksPost",
42 /**
43 * Storage location for Virtual Populates
44 * -> Use only for a class
45 */
46 VirtualPopulate = "typegoose:virtualPopulate",
47 /**
48 * Storage location for Query Methods
49 * -> Use only for a class
50 */
51 QueryMethod = "typegoose:queryMethod",
52 /**
53 * Storage location for Nested Discriminators
54 * -> Use only for a class
55 */
56 NestedDiscriminators = "typegoose:nestedDiscriminators",
57 /**
58 * Storage location for Cached Schemas
59 * -> Use only for a class
60 */
61 CachedSchema = "typegoose:cachedSchema"
62}
63/** This Enum is meant for baseProp to decide for different props (like if it is an arrayProp or prop or mapProp) */
64export declare enum PropType {
65 ARRAY = 0,
66 MAP = 1,
67 NONE = 2
68}
69/** Severity levels for soft-warnings */
70export declare enum Severity {
71 ALLOW = 0,
72 WARN = 1,
73 ERROR = 2
74}
75/**
76 * Symbol to track if options have already been merged
77 * This is to reduce the "merge*" calls, which dont need to be run often if already done
78 */
79export declare const AlreadyMerged: unique symbol;