UNPKG

@atomist/automation-client

Version:

Atomist API for software low-level client

14 lines (9 loc) 370 B
import { ProjectOperationCredentials } from "./ProjectOperationCredentials"; export interface BasicAuthCredentials extends ProjectOperationCredentials { username: string; password: string; } export function isBasicAuthCredentials(o: any): o is BasicAuthCredentials { const c = o as BasicAuthCredentials; return !!c && !!c.username && !!c.password; }