File size: 490 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import { DecodedSourceMap } from '@ampproject/remapping';
import { Location } from 'locate-character';
import { MappedCode } from '../utils/mapped_code.js';
export interface Source {
source: string;
get_location: (search: number) => Location;
file_basename: string;
filename?: string;
}
export interface SourceUpdate {
string?: string;
map?: DecodedSourceMap;
dependencies?: string[];
}
export interface Replacement {
offset: number;
length: number;
replacement: MappedCode;
}
|