Skip to content

Commit

Permalink
Fix setMainSourceMap signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 2, 2018
1 parent ac944b6 commit ec36343
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/lib.deno.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/// <reference no-default-lib="true"/>

/// <reference lib="esnext" />
import { RawSourceMap } from "source-map";

// TODO generate `console.d.ts` and inline it in `assets.ts` and remove
// declaration of `Console`
Expand All @@ -29,7 +30,7 @@ interface Window {
console: Console;
// TODO(ry) These shouldn't be global.
mainSource: string;
setMainSourceMap(sm: string): void;
setMainSourceMap(sm: RawSourcemap): void;
}

// Globals in the runtime environment
Expand All @@ -38,4 +39,4 @@ declare const window: Window;

// TODO(ry) These shouldn't be global.
declare let mainSource: string;
declare function setMainSourceMap(sm: string): void;
declare function setMainSourceMap(sm: RawSourcemap): void;

0 comments on commit ec36343

Please sign in to comment.