mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
27 lines
878 B
TypeScript
27 lines
878 B
TypeScript
/// <reference types="tapable" />
|
|
import Tapable = require('tapable');
|
|
import { ResolveParseResult, ResolverRequest, LoggingCallbackWrapper, BaseFileSystem } from './common-types';
|
|
import { Context } from './concord';
|
|
declare class Resolver extends Tapable {
|
|
fileSystem: BaseFileSystem;
|
|
|
|
constructor(fileSystem: BaseFileSystem);
|
|
|
|
resolveSync(context: Context, path: string, request: string): null;
|
|
|
|
resolve(context: Context, path: string, request: string, callback: LoggingCallbackWrapper): any;
|
|
|
|
doResolve(type: string, request: ResolverRequest, message: string | null, callback: LoggingCallbackWrapper): any;
|
|
|
|
parse(identifier: string): ResolveParseResult | null;
|
|
|
|
isModule(path: string): boolean;
|
|
|
|
isDirectory(path: string): boolean;
|
|
|
|
join(path: string, request: string): string;
|
|
|
|
normalize(path: string): string;
|
|
}
|
|
export = Resolver;
|