DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
490 Bytes
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;
}