source-map-resolve.d.ts 579 B

12345678910111213141516171819
  1. declare module 'source-map-resolve' {
  2. interface ExistingRawSourceMap {
  3. mappings: string;
  4. sources: string[];
  5. sourcesContent: string[];
  6. }
  7. export interface ResolvedSources {
  8. sourcesResolved: string[];
  9. sourcesContent: (string | Error)[];
  10. }
  11. export function resolveSources(
  12. map: ExistingRawSourceMap,
  13. mapUrl: string,
  14. read: (path: string, callback: (error: Error | null, data: Buffer | string) => void) => void,
  15. callback: (error: Error | null, result: ResolvedSources) => void,
  16. ): void;
  17. }