arch-unit-ts
Version:
13 lines (12 loc) • 490 B
TypeScript
import { ArchRule } from '../../ArchRule';
import { ClassesThat } from './ClassesThat';
export interface MethodsShould {
beDecoratedWith(decorator: string): MethodsShouldConjunction;
beAsync(): MethodsShouldConjunction;
beDeclaredInClassesThat(): ClassesThat<MethodsShouldConjunction>;
}
export interface MethodsShouldConjunction extends ArchRule {
orShould(): MethodsShould;
andShould(): MethodsShould;
allowEmptyShould(allow: boolean): MethodsShouldConjunction;
}