UNPKG

teamcity-service-messages

Version:
32 lines (31 loc) 791 B
export interface Args { timestamp?: string; flowId?: string; } /** * Constructs a message formatted for consumption by TeamCity. */ export declare class Message { static flowId: number; type: string; single: boolean; args: Record<string, unknown> | string | number; constructor(type: string, args?: unknown); /** * Add a keyword argument to the message. */ arg(key: string, value: unknown): this; /** * Escape a string for TeamCity output. * @see https://www.jetbrains.com/help/teamcity/service-messages.html */ escape(str?: unknown): string; /** * Format keyword arguments for use in a message. */ formatArgs(): string; /** * Format the message as a string. */ toString(): string; }