Skip to content

Commit

Permalink
update source map interface
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 22, 2017
1 parent b9654af commit 50b50e0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.d.ts
Expand Up @@ -11,11 +11,12 @@ export interface SourceMapOptions {
}

export interface SourceMap {
version: string;
file: string;
sources: string[];
sourcesContent: string;
sourcesContent: string[];
names: string[];
mappings: string[];
mappings: string;

toString(): string;
toUrl(): string;
Expand All @@ -32,8 +33,8 @@ export class Bundle {
indent(indentStr?: string): Bundle;
prepend(str: string): Bundle;
toString(): string;
trimLines(): string;
trim(charType?: string): string;
trimLines(): Bundle;
trim(charType?: string): Bundle;
trimStart(charType?: string): Bundle;
trimEnd(charType?: string): Bundle;
}
Expand All @@ -56,7 +57,7 @@ export interface OverwriteOptions {
}

export default class MagicString {
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
indentExclusionRanges: Array<ExclusionRange>;

constructor(str: string, options?: MagicStringOptions);
addSourcemapLocation(char: number): void;
Expand Down

0 comments on commit 50b50e0

Please sign in to comment.