Skip to content

Commit

Permalink
Merge pull request #124 from AviVahl/master
Browse files Browse the repository at this point in the history
Correct SourceMap/Options TypeScript definitions
  • Loading branch information
Rich-Harris committed Jul 7, 2017
2 parents 0da3bb2 + 9106228 commit 60dc9b1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.d.ts
Expand Up @@ -6,16 +6,18 @@ declare module "magic-string" {

export interface SourceMapOptions {
hires: boolean;
file: string;
source: string;
includeContent: boolean;
}

export interface SourceMap {
file: string;
sources: string[];
sourcesContent: string;
includeContent: boolean;
names: string[];
mappings: string[];
}

class SourceMap {
constructor(properties: SourceMapOptions);
toString(): string;
toUrl(): string;
}
Expand Down

0 comments on commit 60dc9b1

Please sign in to comment.