mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-19 13:32:17 +08:00
Merge pull request #6156 from jvilk/source-map-fixes
[source-map] Fix incorrect `RawSourceMap.sourcesContents` field typing.
This commit is contained in:
@@ -11,7 +11,7 @@ function testSourceMapConsumer() {
|
||||
version: 'foo',
|
||||
sources: ['foo', 'bar'],
|
||||
names: ['foo', 'bar'],
|
||||
sourcesContent: 'foo',
|
||||
sourcesContent: ['foo'],
|
||||
mappings: 'foo'
|
||||
});
|
||||
|
||||
|
||||
2
source-map/source-map.d.ts
vendored
2
source-map/source-map.d.ts
vendored
@@ -13,7 +13,7 @@ declare module SourceMap {
|
||||
version: string;
|
||||
sources: Array<string>;
|
||||
names: Array<string>;
|
||||
sourcesContent?: string;
|
||||
sourcesContent?: string[];
|
||||
mappings: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user