UNPKG

1.76 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/** This Enum is meant for baseProp to decide for diffrent props (like if it is an arrayProp or prop or mapProp) */
54export declare enum PropType {
55 ARRAY = 0,
56 MAP = 1,
57 NONE = 2
58}
59/** @deprecated This was renamed to "PropType" and will be removed in 10.0 */
60export declare const WhatIsIt: typeof PropType;
61/** Severity levels for soft-warnings */
62export declare enum Severity {
63 ALLOW = 0,
64 WARN = 1,
65 ERROR = 2
66}