import { ChildProcess } from 'child_process' ; import { Agent } from '../Agent' ; export const isChildProcess = ( p ) : p is ChildProcess => { return p ? p . constructor . name === 'ChildProcess' : false ; } ; export class AgentClassTypeGuards { /**
     * Type guard for checking if the agent meta data passed in are just file strings
     */ static isGenerationMetaData_FilesOnly ( p ) { return typeof p [ 0 ] === 'string' ; } /**
     * Type guard for checking if the agent meta data passed include names and files
     */ static isGenerationMetaData_CreateMatch ( p ) { return p [ 0 ] . name !== undefined ; } /**
     * Type guard for checking if the agent meta data passed include names and files and tournament ids
     */ static isGenerationMetaData_Tournament ( p ) { return p [ 0 ] . tournamentID !== undefined ; } }