procxy / MaybeProxy
Type Alias: MaybeProxy<T>
ts
type MaybeProxy<T> = T | Procxy<T, any, any>;Defined in: src/types/isomorphism.ts:268
A value that is either the original type T or a Procxy<T> proxy for it.
Type Parameters
| Type Parameter | Description |
|---|---|
T | The original (non-proxy) class type |
Remarks
Useful for writing functions that accept both local instances and remote proxies of the same class — combine with isProcxy to branch at runtime.