Mark APIs at internal and include JSDoc in types

This commit is contained in:
Kitson Kelly 2018-09-04 12:23:38 -07:00 committed by Ryan Dahl
parent 2c0d00840d
commit 10dc71133a
10 changed files with 55 additions and 25 deletions

View file

@ -177,7 +177,7 @@ function globalEvalMock(x: string): void {
function logMock(...args: any[]): void {
logStack.push(args);
}
const osMock: compiler.Os = {
const osMock = {
codeCache(fileName: string, sourceCode: string, outputCode: string): void {
codeCacheStack.push({ fileName, sourceCode, outputCode });
if (fileName in moduleCache) {
@ -205,7 +205,7 @@ const osMock: compiler.Os = {
throw new Error(`os.exit(${code})`);
}
};
const tsMock: compiler.Ts = {
const tsMock = {
createLanguageService(host: ts.LanguageServiceHost): ts.LanguageService {
return {} as ts.LanguageService;
},