@robotlegsjs/core
Version:
An architecture-based IoC framework for JavaScript/TypeScript
15 lines (14 loc) • 371 B
TypeScript
/**
* A guard is expected to expose an "approve" method that returns a boolean
*
* <p>Note: a guard does not need to implement this interface.
* Any object that exposes an "approve" method can be used as a guard.</p>
*/
export interface IGuard {
/**
* Does this guard approve of this action?
*
* @return Approval
*/
approve(): boolean;
}