fix build errors
This commit is contained in:
parent
f077be052e
commit
7e7680790c
|
@ -86,6 +86,11 @@ function analyze(libFileName: string, files: string[], outputFolder: string): Pr
|
|||
error: (s) => { }
|
||||
};
|
||||
|
||||
const cancellationToken: ts.CancellationToken = {
|
||||
isCancellationRequested: () => false,
|
||||
throwIfCancellationRequested: () => {}
|
||||
}
|
||||
|
||||
let documentRegistry: ts.DocumentRegistry = {
|
||||
acquireDocument: (fileName, settings, snapshot, version) => program.getSourceFile(fileName),
|
||||
releaseDocument: (fileName, settings) => { },
|
||||
|
@ -358,10 +363,6 @@ function analyze(libFileName: string, files: string[], outputFolder: string): Pr
|
|||
return fileName + "|" + start;
|
||||
}
|
||||
|
||||
const cancellationToken: ts.CancellationToken = {
|
||||
isCancellationRequested: () => false,
|
||||
throwIfCancellationRequested: () => {}
|
||||
}
|
||||
function createProgram(files: string[]): ts.Program {
|
||||
let host: ts.CompilerHost = {
|
||||
getSourceFile: (filename, languageVersion) => {
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
var ActiveXObject: { new(...args: any[]): any }
|
||||
|
||||
declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
|
||||
|
||||
declare module Intl {
|
||||
interface CollatorOptions {
|
||||
usage?: string;
|
||||
|
|
Loading…
Reference in a new issue