Home > typeioc > IInterceptor > interceptPrototype
Creates intercepted prototype representative
Signature:
interceptPrototype<R extends Function>(subject: R, substitutes?: ISubstituteInfo | ISubstituteInfo[]): R;
Parameter | Type | Description |
---|---|---|
subject | R |
function/class prototype (prototypical/constructible function) |
substitutes | ISubstituteInfo | ISubstituteInfo[] |
instance(s) of ISubstituteInfo interface. If substitutes are applied to the same member, they are chained |
Returns:
R