file-lane
Version:
File conversion tool, can be one-to-one, one to N, N to one
18 lines (17 loc) • 496 B
TypeScript
import { ILog } from '@aiot-toolkit/shared-utils/lib/interface/ILog';
import IFileLaneContext from './IFileLaneContext';
import IFileParam from './IFileParam';
/**
* ILoader
*/
export default interface ILoader {
context?: IFileLaneContext;
compilerOption?: any;
parser(files: IFileParam[]): Promise<IFileParam[]> | IFileParam[];
/**
* 日志列表
*
* 其中有 `THROW` `ERROR` 时,会中断打包,并触发 `onBuildError` 事件
*/
logs?: ILog[];
}