typeioc

Home > typeioc > ISubstituteInfo

ISubstituteInfo interface

Represents substitute information encapsulation interface

Signature:

export interface ISubstituteInfo 

Properties

Property Type Description
method string Original subject member name. If omitted, substitution is applied to all members
type CallInfoType Original subject member type. Used to specify partial substitution of getters and setters. If omitted, original subject member type is used CallInfoType
wrapper (callInfo: ICallInfo) => any | void Specifies substitute action/behavior (lambda expression executed during substitution call)

Remarks

Multiple substitutions for the same member form an execution chain. Every predecessor in the chain can pass a result of the execution to its successor. Every successor in the chain can receive a result of predecessor execution. If substitution does not invoke its successor, execution chain stops