procxy / HasHandleSupport
Type Alias: HasHandleSupport<P>
ts
type HasHandleSupport<P> = P extends Procxy<any, any, infer SH> ? SH extends true ? true : false : false;Defined in: src/types/isomorphism.ts:81
Conditional type that resolves to true when P has $sendHandle support.
Type Parameters
| Type Parameter | Description |
|---|---|
P | A Procxy type |
Example
typescript
import type { HasHandleSupport, Procxy } from 'procxy';
type Has1 = HasHandleSupport<Procxy<Worker, 'advanced', true>>; // true
type Has2 = HasHandleSupport<Procxy<Worker, 'json', false>>; // false