sqlite - fix compile

This commit is contained in:
Benjamin Pasero
2018-10-14 10:44:59 +02:00
parent b843906c3f
commit e7c47cdf9c

View File

@@ -47,7 +47,7 @@ function createCompile(src: string, build: boolean, emitError?: boolean): (token
opts.inlineSources = !!build;
opts.noFilesystemLookup = true;
const ts = tsb.create(opts, true, undefined, err => new reporter(err.toString()));
const ts = tsb.create(opts, true, undefined, err => new (<any>reporter)(err.toString()));
return function (token?: util.ICancellationToken) {