UNPKG

1.98 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 Plugins
24 * -> Use only for a class
25 */
26 Plugins = "typegoose:plugins",
27 /**
28 * Storage location for Pre-Hooks
29 * -> Use only for a class
30 */
31 HooksPre = "typegoose:hooksPre",
32 /**
33 * Storage location for Post-Hooks
34 * -> Use only for a class
35 */
36 HooksPost = "typegoose:hooksPost",
37 /**
38 * Storage location for Virtual Populates
39 * -> Use only for a class
40 */
41 VirtualPopulate = "typegoose:virtualPopulate",
42 /**
43 * Storage location for Query Methods
44 * -> Use only for a class
45 */
46 QueryMethod = "typegoose:queryMethod",
47 /**
48 * Storage location for Nested Discriminators
49 * -> Use only for a class
50 */
51 NestedDiscriminators = "typegoose:nestedDiscriminators",
52 /**
53 * Storage location for Cached Schemas
54 * -> Use only for a class
55 */
56 CachedSchema = "typegoose:cachedSchema"
57}
58/** This Enum is meant for baseProp to decide for different props (like if it is an arrayProp or prop or mapProp) */
59export declare enum PropType {
60 ARRAY = 0,
61 MAP = 1,
62 NONE = 2
63}
64/** Severity levels for soft-warnings */
65export declare enum Severity {
66 ALLOW = 0,
67 WARN = 1,
68 ERROR = 2
69}
70/**
71 * Symbol to track if options have already been merged
72 * This is to reduce the "merge*" calls, which dont need to be run often if already done
73 */
74export declare const AlreadyMerged: unique symbol;