registerChannelsOnce() function
Registers pg-cache channel entries for a method on the given prototype exactly once, even when called from a per-construction initializer.
Signature:
export declare function registerChannelsOnce(proto: any, methodName: string, register: (channels: Record<string, unknown[]>) => void): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
proto |
any |
declaring prototype to attach channel metadata to |
|
methodName |
string |
decorated method name (dedup key) |
|
register |
(channels: Record<string, unknown[]>) => void |
pushes entries |
Returns:
void
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.