procxy / IsProcxyIsomorphic
Type Alias: IsProcxyIsomorphic<T, Mode, SH>
ts
type IsProcxyIsomorphic<T, Mode, SH> = UnwrapProcxy<Procxy<T, Mode, SH>> extends T ? Procxy<T, Mode, SH> extends Procxy<UnwrapProcxy<Procxy<T, Mode, SH>>, Mode, SH> ? true : false : false;Defined in: src/types/isomorphism.ts:200
Conditional type that resolves to true when T <-> Procxy<T> form a consistent isomorphism.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | - | Original type |
Mode extends SerializationMode | "json" | Serialization mode |
SH extends boolean | false | Handle support flag |
Remarks
Checks both directions: T -> Procxy<T> (forward) and Procxy<T> -> T (backward via UnwrapProcxy). Returns false if either direction breaks, e.g., when T has methods with non-serializable signatures that disappear from the proxy type.