@@ -11,22 +11,25 @@ export declare class LanguageServiceHost implements tsTypes.LanguageServiceHost
11
11
constructor ( parsedConfig : tsTypes . ParsedCommandLine , transformers : TransformerFactoryCreator [ ] , cwd : string ) ;
12
12
reset ( ) : void ;
13
13
setLanguageService ( service : tsTypes . LanguageService ) : void ;
14
- setSnapshot ( fileName : string , data : string ) : tsTypes . IScriptSnapshot ;
14
+ setSnapshot ( fileName : string , source : string ) : tsTypes . IScriptSnapshot ;
15
15
getScriptSnapshot ( fileName : string ) : tsTypes . IScriptSnapshot | undefined ;
16
- getCurrentDirectory ( ) : string ;
16
+ getScriptFileNames : ( ) => string [ ] ;
17
17
getScriptVersion ( fileName : string ) : string ;
18
- getScriptFileNames ( ) : string [ ] ;
19
- getCompilationSettings ( ) : tsTypes . CompilerOptions ;
20
- getDefaultLibFileName ( opts : tsTypes . CompilerOptions ) : string ;
21
- useCaseSensitiveFileNames ( ) : boolean ;
22
- readDirectory ( path : string , extensions ?: string [ ] , exclude ?: string [ ] , include ?: string [ ] ) : string [ ] ;
23
- readFile ( path : string , encoding ?: string ) : string | undefined ;
24
- fileExists ( path : string ) : boolean ;
25
- realpath ( path : string ) : string ;
26
- getTypeRootsVersion ( ) : number ;
27
- directoryExists ( directoryName : string ) : boolean ;
28
- getDirectories ( directoryName : string ) : string [ ] ;
29
18
getCustomTransformers ( ) : tsTypes . CustomTransformers | undefined ;
30
- trace ( line : string ) : void ;
19
+ getCompilationSettings : ( ) => tsTypes . CompilerOptions ;
20
+ getTypeRootsVersion : ( ) => number ;
21
+ getCurrentDirectory : ( ) => string ;
22
+ useCaseSensitiveFileNames : ( ) => boolean ;
23
+ getDefaultLibFileName : typeof tsTypes . getDefaultLibFilePath ;
24
+ readDirectory : ( path : string , extensions ?: readonly string [ ] | undefined , exclude ?: readonly string [ ] | undefined , include ?: readonly string [ ] | undefined , depth ?: number | undefined ) => string [ ] ;
25
+ readFile : ( path : string , encoding ?: string | undefined ) => string | undefined ;
26
+ fileExists : ( path : string ) => boolean ;
27
+ directoryExists : ( path : string ) => boolean ;
28
+ getDirectories : ( path : string ) => string [ ] ;
29
+ realpath : ( path : string ) => string ;
30
+ trace : {
31
+ ( ...data : any [ ] ) : void ;
32
+ ( message ?: any , ...optionalParams : any [ ] ) : void ;
33
+ } ;
31
34
}
32
35
//# sourceMappingURL=host.d.ts.map
0 commit comments