You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
interface SourceMapV3 { |
|
file?: string | null; |
|
names: string[]; |
|
sourceRoot?: string; |
|
sources: (string | null)[]; |
|
sourcesContent?: (string | null)[]; |
|
version: 3; |
|
} |
|
declare type Column = number; |
|
declare type SourcesIndex = number; |
|
declare type SourceLine = number; |
|
declare type SourceColumn = number; |
|
declare type NamesIndex = number; |
|
export declare type SourceMapSegment = [Column] | [Column, SourcesIndex, SourceLine, SourceColumn] | [Column, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; |
|
export interface RawSourceMap extends SourceMapV3 { |
|
mappings: string; |
|
} |
|
export interface DecodedSourceMap extends SourceMapV3 { |
|
mappings: SourceMapSegment[][]; |
|
} |
|
export interface SourceMapSegmentObject { |
|
column: number; |
|
line: number; |
|
name: string; |
|
source: string; |
|
content: string | null; |
|
} |
|
export declare type SourceMapInput = string | RawSourceMap | DecodedSourceMap; |
|
export declare type LoaderContext = { |
|
readonly importer: string; |
|
readonly depth: number; |
|
source: string; |
|
content: string | null | undefined; |
|
}; |
|
export declare type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined; |
|
export declare type Options = { |
|
excludeContent?: boolean; |
|
decodedMappings?: boolean; |
|
}; |
|
export {};
|
|
|