mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
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:
Vendored
+3
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user