Skip to content

Commit

Permalink
Specify all exported types to unbreak TS v4.* (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Jan 19, 2024
1 parent b7599b3 commit f4a316e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/trace-mapping.ts
Expand Up @@ -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)';
Expand Down

0 comments on commit f4a316e

Please sign in to comment.