From cb2615884b0ee84ff44bc65282e211a652c2267a Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Wed, 5 Jul 2017 19:18:29 -0700 Subject: [PATCH] The originalSource parameter to the SourceMapSource constructor is optional. --- types/webpack-sources/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/webpack-sources/index.d.ts b/types/webpack-sources/index.d.ts index 548c381978..792158d27a 100644 --- a/types/webpack-sources/index.d.ts +++ b/types/webpack-sources/index.d.ts @@ -186,7 +186,10 @@ export class SourceMapSource extends Source implements SourceAndMapMixin { _innerSourceMap: RawSourceMap; constructor( - value: string, name: string, sourceMap: SourceMapGenerator | RawSourceMap, originalSource: string, + value: string, + name: string, + sourceMap: SourceMapGenerator | RawSourceMap, + originalSource?: string, innerSourceMap?: RawSourceMap );