UNPKG

770 BTypeScriptView Raw
1import { Severity } from './internal/constants';
2import type { IGlobalOptions } from './types';
3/**
4 * Set Typegoose's global Options
5 */
6export declare function setGlobalOptions(options: IGlobalOptions): void;
7/**
8 * Parse Typegoose Environment Variables and apply them
9 */
10export declare function parseENV(): void;
11/**
12 * Maps strings to the number of "Severity"
13 * -> This function is specifically build for "Severity"-Enum
14 * @throws {Error} if not in range of the "Severity"-Enum
15 * @example
16 * ```ts
17 * mapValueToSeverity("WARN") === 1
18 * mapValueToSeverity("1") === 1
19 * // now internal use
20 * mapValueToSeverity(1) === 1
21 * ```
22 * @param value The Value to translate
23 * @internal
24 */
25export declare function mapValueToSeverity(value: string | number): Severity;