9154877f5a38af2d9191922555c57949ee7320c66df27f71f9eebe809ba09745b376d3e45d872bfa8cb75ce8dcce2060a73d3112158ceda418ccd737f3edb1 856 B

123456789101112131415161718192021222324252627282930313233343536
  1. import type { SourceMapSegment } from './sourcemap-segment';
  2. export interface SourceMapV3 {
  3. file?: string | null;
  4. names: readonly string[];
  5. sourceRoot?: string;
  6. sources: readonly (string | null)[];
  7. sourcesContent?: readonly (string | null)[];
  8. version: 3;
  9. ignoreList?: readonly number[];
  10. }
  11. export interface EncodedSourceMap extends SourceMapV3 {
  12. mappings: string;
  13. }
  14. export interface DecodedSourceMap extends SourceMapV3 {
  15. mappings: readonly SourceMapSegment[][];
  16. }
  17. export interface Pos {
  18. line: number;
  19. column: number;
  20. }
  21. export declare type Mapping = {
  22. generated: Pos;
  23. source: undefined;
  24. original: undefined;
  25. name: undefined;
  26. } | {
  27. generated: Pos;
  28. source: string;
  29. original: Pos;
  30. name: string;
  31. } | {
  32. generated: Pos;
  33. source: string;
  34. original: Pos;
  35. name: undefined;
  36. };