mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 08:04:00 +00:00
Mark APIs at internal and include JSDoc in types
This commit is contained in:
parent
2c0d00840d
commit
10dc71133a
10 changed files with 55 additions and 25 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue