Thunk interface
A zero-argument function whose return value is resolved lazily.
Used by property() and indexed() so a type definition can reference a class that is not yet initialized at decoration time — self-references and forward references.
Signature:
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.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.