UNPKG

openapi-modifier

Version:

This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules

24 lines (23 loc) 803 B
import tmp, { FileResult } from 'tmp'; import { LoggerI } from './interface'; declare class TempFileLogger implements LoggerI { private tmpFile; private logsPrefix; static createTmpFile: () => tmp.FileResult; constructor({ name, tmpFile }: { name?: string; tmpFile?: FileResult; }); private writeLog; clone: (name: string) => TempFileLogger; trace: (message: string, obj: any) => void; info: (message: string) => void; notImportantWarning: (message: string) => void; error: (error: Error, message?: string) => void; errorMessage: (message?: string) => void; warning: (message: string) => void; success: (message: string) => void; helpInfo: (message: string) => void; getHelpInfo: () => string; } export { TempFileLogger };