Skip to content

IStrategy

IStrategy object

IStrategy is a type that represents an object that follows the template with certain properties which allows to execute a specific action or behavior inside another class, function or a method.

type IStrategy<A = undefined, R = undefined> = {
    execute(args?: A): R;
}