mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Refactor plugin related code (#53942)
This commit is contained in:
+2
-2
@@ -28,6 +28,7 @@ import {
|
||||
matchesExclude,
|
||||
matchFiles,
|
||||
memoize,
|
||||
ModuleImportResult,
|
||||
noop,
|
||||
normalizePath,
|
||||
normalizeSlashes,
|
||||
@@ -35,7 +36,6 @@ import {
|
||||
Path,
|
||||
perfLogger,
|
||||
PollingWatchKind,
|
||||
RequireResult,
|
||||
resolveJSModule,
|
||||
some,
|
||||
startsWith,
|
||||
@@ -1428,7 +1428,7 @@ export interface System {
|
||||
base64decode?(input: string): string;
|
||||
base64encode?(input: string): string;
|
||||
/** @internal */ bufferFrom?(input: string, encoding?: string): Buffer;
|
||||
/** @internal */ require?(baseDir: string, moduleName: string): RequireResult;
|
||||
/** @internal */ require?(baseDir: string, moduleName: string): ModuleImportResult;
|
||||
|
||||
// For testing
|
||||
/** @internal */ now?(): Date;
|
||||
|
||||
@@ -7371,7 +7371,7 @@ export interface ConfigFileSpecs {
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export type RequireResult<T = {}> =
|
||||
export type ModuleImportResult<T = {}> =
|
||||
| { module: T, modulePath?: string, error: undefined }
|
||||
| { module: undefined, modulePath?: undefined, error: { stack?: string, message?: string } };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user