import { createBoundaryNameDetails } from '../../boundary/functions/create-boundary-name-details.function'; import { defineBoundary } from '../../boundary/functions/define-boundary.function'; import { Scope } from '../classes/scope.class'; /** * Defines a Boundary and declaration scope. * * @param name Name of the Boundary in this format `${Type}:${Title}` * @returns declaration Scope */ export function defineScope( name: `${Type}:${Title}`, ) { const [type, title] = createBoundaryNameDetails(name); const boundary = defineBoundary(type, title); return new Scope(boundary); }