azure-pipelines-logging
Version:
Typed API for logging in Azure Pipelines
7 lines (6 loc) • 600 B
TypeScript
import { Action, Area, NoProperties, Properties } from "./internal/command";
import { FormatWithMessage, FormatWithoutMessage } from "./internal/format";
export declare function command<Ar extends Area, Ac extends Action<Ar>, Props extends Properties<Ar, Ac>>(area: Ar, action: Ac, ...properties: Props extends NoProperties ? [] : [Props]): (message: string) => string;
export declare function format(format: FormatWithoutMessage): () => string;
export declare function format(format: FormatWithMessage): (...message: readonly string[]) => string;
export declare function log(message: string): void;