Options for the

Register For Startup

decorator

interface RegisterForStartupOptions {
    description?: string;
    priority?: number;
    severity?: "error" | "fatal" | "warn" | "silent";
}

Properties

description?: string

Human-readable description for logging/debugging

priority?: number

Loading priority. Lower numbers load first. Classes with same priority load in parallel. Default: 100

severity?: "error" | "fatal" | "warn" | "silent"

What happens if HandleStartup() fails.

  • 'fatal': Stop startup, throw error, process should terminate
  • 'error': Log error, continue loading other classes (default)
  • 'warn': Log warning, continue (for optional functionality)
  • 'silent': Swallow error completely