Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
850 B
TypeScript
27 lines
850 B
TypeScript
import { type LoggerService, type Type } from '@nestjs/common';
|
|
export type ErrorLogStyle = 'pretty' | 'json';
|
|
/**
|
|
* The Terminus module options
|
|
*
|
|
* errorLogStyle: The style of the error logger. Either 'pretty' or 'json'. Default to 'json'.
|
|
* logger: The logger to use. Either default logger or your own.
|
|
* gracefulShutdownTimeoutMs: The timeout to wait in ms before the application shuts down. Default to 0ms.
|
|
* @publicApi
|
|
*/
|
|
export interface TerminusModuleOptions {
|
|
/**
|
|
* The style of the error logger
|
|
* @default 'json'
|
|
*/
|
|
errorLogStyle?: ErrorLogStyle;
|
|
/**
|
|
* The logger to use. Either default logger or your own.
|
|
*/
|
|
logger?: Type<LoggerService> | boolean;
|
|
/**
|
|
* The timeout to wait in ms before the application shuts down
|
|
* @default 0
|
|
*/
|
|
gracefulShutdownTimeoutMs?: number;
|
|
}
|