@thisisagile/easy
Version:
Straightforward library for building domain-driven microservice architectures
13 lines (12 loc) • 444 B
TypeScript
import { Enum } from '../types/Enum';
import type { Text } from '../types/Text';
import { List } from '../types/List';
import { IdName } from '../types/Identity';
export declare class Scope extends Enum {
readonly name: string;
readonly subs: List<Scope>;
protected constructor(name: string, id?: Text, subs?: List<Scope>);
for(item: string | IdName): Scope;
combines(...scopes: Scope[]): this;
expand(): List<Scope>;
}