# Thunk interface · @imqueue/rpc

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

A zero-argument function whose return value is resolved lazily.

Used by [property()](https://imqueue.org/api/rpc/latest/rpc.property/) and [indexed()](https://imqueue.org/api/rpc/latest/rpc.indexed/) so a type definition can reference a class that is not yet initialized at decoration time — self-references and forward references.

**Signature:**

```typescript
export interface Thunk 
```

## Remarks

Detection is by the absence of a function name, so the thunk must be an anonymous function or arrow function. A named function is treated as a constructor instead, and resolves to its own name.

