Closed
Description
WriteFileCallback
is defined as follows:
export interface WriteFileCallback {
(fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: SourceFile[]): void;
}
I was wondering why sourceFiles
marked as optional. As of version 3.6, we're using this in gulp-typescript. This works fine, but ivogabe/gulp-typescript#499 describes that sourceFiles
is undefined
in some special case. So, when is sourceFiles
undefined
, and is there some way to force it being set?