import type { Procedure, ProcedureContext } from 'domain-glossary-procedure'; import type { LogMethods } from '../domain.operations/generateLogMethods'; /** * .what = the procedure invocation trail */ export type LogTrail = string[]; export interface ContextLogTrail { /** * .what = the log context which can be used; methods, trail, etc */ log: LogMethods & { _orig?: LogMethods; } & { /** * .what = the log trail which has been collected */ trail?: LogTrail; }; } export type HasContextLogTrail = ProcedureContext extends ContextLogTrail ? T : never;