diff --git a/types/source-map-support/index.d.ts b/types/source-map-support/index.d.ts index f92a8383b557ce..00ad396b9e8b87 100644 --- a/types/source-map-support/index.d.ts +++ b/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 , Jason Cheatham +// Definitions by: Bart van der Schoor , Jason Cheatham , Alcedo Nathaniel De Guzman Jr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -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. diff --git a/types/source-map-support/source-map-support-tests.ts b/types/source-map-support/source-map-support-tests.ts index 7b07c2970f4bbd..cb773b9958037d 100644 --- a/types/source-map-support/source-map-support-tests.ts +++ b/types/source-map-support/source-map-support-tests.ts @@ -41,3 +41,5 @@ p = sms.mapSourcePosition(p); let u: sms.UrlAndMap | null; u = retrieveSourceMap("foo"); + +sms.resetRetrieveHandlers();