From 251eee61f1b0f30b2363b5b8f7ea9d1f85affaa0 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Fri, 19 Jan 2024 12:53:13 -0500 Subject: [PATCH] Specify all exported types to unbreak TS v4.* --- src/trace-mapping.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/trace-mapping.ts b/src/trace-mapping.ts index 5f4a3a6..780ea1b 100644 --- a/src/trace-mapping.ts +++ b/src/trace-mapping.ts @@ -41,7 +41,25 @@ import type { Source } from './by-source'; import type { MemoState } from './binary-search'; export type { SourceMapSegment } from './sourcemap-segment'; -export type * from './types'; +export type { + SourceMap, + DecodedSourceMap, + EncodedSourceMap, + Section, + SectionedSourceMap, + SourceMapV3, + Bias, + EachMapping, + GeneratedMapping, + InvalidGeneratedMapping, + InvalidOriginalMapping, + Needle, + OriginalMapping, + OriginalMapping as Mapping, + SectionedSourceMapInput, + SourceMapInput, + SourceNeedle, +} from './types'; const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';