typeioc

Home > typeioc > IWithSubstituteResult

IWithSubstituteResult interface

Represents fluent cascading API interface for substitutes specification

Signature:

export interface IWithSubstituteResult 

Properties

Property Type Description
intercept <R extends (Function | Object)>(subject: R) => R Create a subject with members substituted by given parameters. For the instances of an object - interceptInstance method is used, for prototypical/constructible functions - interceptPrototype is used
interceptInstance <R extends Object>(subject: R) => R Creates intercepted instance representative
interceptPrototype <R extends Function>(subject: R) => R Creates intercepted prototype representative
withSubstitute (substitute: ISubstituteInfo) => IWithSubstituteResult Adds a new substitute to the substitute chain