Skip to content

Commit

Permalink
Merge pull request #33351 from natealcedo/fix/update-source-map-support
Browse files Browse the repository at this point in the history
Update source-map-support to include definition for resetRetrieveHandlers
  • Loading branch information
sandersn committed Mar 5, 2019
2 parents 87e8022 + 257469f commit bdb87d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/source-map-support/index.d.ts
@@ -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" />
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions types/source-map-support/source-map-support-tests.ts
Expand Up @@ -41,3 +41,5 @@ p = sms.mapSourcePosition(p);

let u: sms.UrlAndMap | null;
u = retrieveSourceMap("foo");

sms.resetRetrieveHandlers();

0 comments on commit bdb87d4

Please sign in to comment.