diff --git a/src/index.d.ts b/src/index.d.ts index 20872aa..42c0ec2 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -37,7 +37,7 @@ export type SourceMapSegment = export interface DecodedSourceMap { file: string; sources: string[]; - sourcesContent: (string | null)[]; + sourcesContent?: string[]; names: string[]; mappings: SourceMapSegment[][]; x_google_ignoreList?: number[]; @@ -49,7 +49,7 @@ export class SourceMap { version: number; file: string; sources: string[]; - sourcesContent: (string | null)[]; + sourcesContent?: string[]; names: string[]; mappings: string; x_google_ignoreList?: number[]; @@ -80,8 +80,8 @@ export class Bundle { addSource(source: MagicString | { filename?: string, content: MagicString, ignoreList?: boolean }): Bundle; append(str: string, options?: BundleOptions): Bundle; clone(): Bundle; - generateMap(options?: SourceMapOptions): SourceMap; - generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap; + generateMap(options?: SourceMapOptions): Omit & { sourcesContent: Array }; + generateDecodedMap(options?: SourceMapOptions): Omit & { sourcesContent: Array }; getIndentString(): string; indent(indentStr?: string): Bundle; indentExclusionRanges: ExclusionRange | Array;