UNPKG

@oselvar/c4

Version:

Test helpers for Cloudflare Workers

28 lines (21 loc) 1.84 kB
import { e as C4Callchain, d as C4Call, c as C4Object, C as C4Model, f as C4CallKey, g as C4ObjectKey } from '../C4Model-C1kukjQy.js'; export { a as C4Name, b as C4ObjectType } from '../C4Model-C1kukjQy.js'; import { a as C4SoftwareSystemParams, b as C4ContainerParams, c as C4ComponentParams, C as C4ModelBuilder } from '../C4ModelBuilder-Ca0aKRsq.js'; export { e as C4GroupParams, d as C4ObjectParams, f as C4PersonParams } from '../C4ModelBuilder-Ca0aKRsq.js'; type Constructor<T = object> = new (...args: any[]) => T; type SoftwareSystem = Constructor; type Container = Constructor; type Component = Constructor; declare function C4SoftwareSystem<T extends SoftwareSystem>(params?: C4SoftwareSystemParams): (system: T) => T; declare function C4Container<T extends Container>({ softwareSystem, tags, }: C4ContainerParams): (container: T) => T; declare function C4Component<T extends Component>({ container, tags, }: C4ComponentParams): (component: T) => T; declare function C4Operation(): MethodDecorator; declare function getUniqueCalls(callchains: readonly C4Callchain[]): readonly C4Call[]; declare const globalC4ModelBuilder: C4ModelBuilder; declare const globalC4Ready: () => void; declare function makeC4Model(objects: C4Object[], callchains: C4Callchain[]): C4Model; declare function callKey(call: C4Call): C4CallKey; declare function objectKey(object: C4Object): C4ObjectKey; declare function makeObjectKey(type: string, name: string): C4ObjectKey; declare function camelCase(input: string): string; export { C4Call, C4CallKey, C4Callchain, C4Component, C4ComponentParams, C4Container, C4ContainerParams, C4Model, C4ModelBuilder, C4Object, C4ObjectKey, C4Operation, C4SoftwareSystem, C4SoftwareSystemParams, callKey, camelCase, getUniqueCalls, globalC4ModelBuilder, globalC4Ready, makeC4Model, makeObjectKey, objectKey };