Merge pull request #33351 from natealcedo/fix/update-source-map-support

Update source-map-support to include definition for resetRetrieveHandlers
This commit is contained in:
Nathan Shively-Sanders
2019-03-05 11:21:36 -08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
// Type definitions for source-map-support 0.4
// Type definitions for source-map-support 0.5
// Project: https://github.com/evanw/node-source-map-support
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Jason Cheatham <https://github.com/jason0x43>
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Jason Cheatham <https://github.com/jason0x43>, Alcedo Nathaniel De Guzman Jr <https://github.com/natealcedo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@@ -37,6 +37,7 @@ export function wrapCallSite(frame: any /* StackFrame */): any /* StackFrame */;
export function getErrorSource(error: Error): string | null;
export function mapSourcePosition(position: Position): Position;
export function retrieveSourceMap(source: string): UrlAndMap | null;
export function resetRetrieveHandlers(): void;
/**
* Install SourceMap support.
@@ -41,3 +41,5 @@ p = sms.mapSourcePosition(p);
let u: sms.UrlAndMap | null;
u = retrieveSourceMap("foo");
sms.resetRetrieveHandlers();