mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
20 lines
579 B
TypeScript
20 lines
579 B
TypeScript
declare module 'source-map-resolve' {
|
|
interface ExistingRawSourceMap {
|
|
mappings: string;
|
|
sources: string[];
|
|
sourcesContent: string[];
|
|
}
|
|
|
|
export interface ResolvedSources {
|
|
sourcesResolved: string[];
|
|
sourcesContent: (string | Error)[];
|
|
}
|
|
|
|
export function resolveSources(
|
|
map: ExistingRawSourceMap,
|
|
mapUrl: string,
|
|
read: (path: string, callback: (error: Error | null, data: Buffer | string) => void) => void,
|
|
callback: (error: Error | null, result: ResolvedSources) => void
|
|
): void;
|
|
}
|