procxy / IsProcxy
Type Alias: IsProcxy<P>
ts
type IsProcxy<P> = P extends Procxy<any, any, any> ? true : false;Defined in: src/types/isomorphism.ts:47
Conditional type that resolves to true when P is a Procxy type.
Type Parameters
| Type Parameter | Description |
|---|---|
P | Type to check |
Example
typescript
import type { IsProcxy, Procxy } from 'procxy';
import { Calculator } from './calculator.js';
type Check1 = IsProcxy<Procxy<Calculator>>; // true
type Check2 = IsProcxy<Calculator>; // false