# MethodDecorator type · @imqueue/pg-cache

Source: https://imqueue.org/api/pg-cache/latest/pg-cache.methoddecorator/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-cache 5.0.6 — generated reference, not hand-written

A dual-mode method decorator: called as `(target, propertyKey, descriptor)` by legacy (`experimentalDecorators`) TypeScript and as `(value, context)` by standard (TC39) decorators.

Use [isStandardDecorator()](https://imqueue.org/api/pg-cache/latest/pg-cache.isstandarddecorator/) on the second argument to tell the two apart.

**Signature:**

```typescript
export type MethodDecorator = (target: any, context: any, descriptor?: TypedPropertyDescriptor<(...args: any[]) => any>) => any;
```

