12 lines
423 B
TypeScript
12 lines
423 B
TypeScript
import { Options } from ".";
|
|
import { ErrorBuffer } from "./util/errors";
|
|
export default class Context {
|
|
options: Options;
|
|
static from(contextOrOptions: Context | Options): Context;
|
|
constructor(options: Options);
|
|
resolvePath(path: string): string;
|
|
nonFatalError(error: Error, errorBuffer?: ErrorBuffer): void;
|
|
warning(error: Error, errorBuffer?: ErrorBuffer): void;
|
|
readonly canWarn: boolean;
|
|
}
|