template-saas/apps/backend/node_modules/@nestjs/terminus/dist/utils/promise-timeout.d.ts
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
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>
2026-01-07 04:41:24 -06:00

20 lines
505 B
TypeScript

/**
* An errors which gets raised when the timeout
* exceeded
*
* @internal
*/
export declare class TimeoutError extends Error {
}
/**
* Executes a promise in the given timeout. If the promise
* does not finish in the given timeout, it will
* raise a TimeoutError
*
* @param {number} ms The timeout in milliseconds
* @param {Promise<any>} promise The promise which should get executed
*
* @internal
*/
export declare const promiseTimeout: <T>(ms: number, promise: Promise<T>) => Promise<T>;