Skip to content

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 ParameterDescription
PType 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

Released under the MIT License.