Skip to content

Commit

Permalink
fix: update sourcesContent type (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Oct 12, 2023
1 parent cf554e7 commit 0e2068d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.d.ts
Expand Up @@ -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[];
Expand All @@ -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[];
Expand Down Expand Up @@ -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<SourceMap, 'sourcesContent'> & { sourcesContent: Array<string | null> };
generateDecodedMap(options?: SourceMapOptions): Omit<DecodedSourceMap, 'sourcesContent'> & { sourcesContent: Array<string | null> };
getIndentString(): string;
indent(indentStr?: string): Bundle;
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
Expand Down

0 comments on commit 0e2068d

Please sign in to comment.