Skip to content

RetryStrategy

@tsed/mikro-orm

Usage

typescript
import { RetryStrategy } from "@tsed/mikro-orm";

See /packages/orm/mikro-orm/src/types/interfaces/RetryStrategy.ts.

Overview

ts
interface RetryStrategy {
    acquire<T extends (...args: unknown[]) => unknown>(task: T): Promise<ReturnType<T> extends Promise<infer V> ? V : ReturnType<T>>;
}
export const RetryStrategy: unique symbol;

acquire

ts
acquire<T extends (...args: unknown[]) => unknown>(task: T): Promise<ReturnType<T> extends Promise<infer V> ? V : ReturnType<T>>;

Released under the MIT License.