ClassDecorator type
A dual-mode class decorator: called as (constructor) by legacy (experimentalDecorators) TypeScript and as (value, context) by standard (TC39) decorators. In both forms the first argument is the class, and the result is the class augmented with PgCacheable.
Supporting both is what lets this package decorate @imqueue services compiled in either mode, the same way @imqueue/rpc and @imqueue/core decorators do.
Signature:
export type ClassDecorator = <T extends new (...args: any[]) => {}>(constructor: T, context?: unknown) => T & PgCacheable;
References: PgCacheable
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.