diff --git a/types/Chain.d.ts b/types/Chain.d.ts index 57af254..2ebd5bb 100644 --- a/types/Chain.d.ts +++ b/types/Chain.d.ts @@ -12,7 +12,7 @@ export default class Chain { }; apply(options?: {}): SourceMap; trace(oneBasedLineIndex: any, zeroBasedColumnIndex: any): any; - write(dest: any, options: any): Promise; + write(dest: any, options: any): Promise; writeSync(dest: any, options: any): void; } import SourceMap from './SourceMap.js'; diff --git a/types/Node.d.ts b/types/Node.d.ts index cfc983c..8f8a719 100644 --- a/types/Node.d.ts +++ b/types/Node.d.ts @@ -21,7 +21,7 @@ export default class Node { tracingTime: number; untraceable: number; }; - load(sourcesContentByPath: any, sourceMapByPath: any): any; + load(sourcesContentByPath: any, sourceMapByPath: any): Promise; loadSync(sourcesContentByPath: any, sourceMapByPath: any): void; /** * Traces a segment back to its origin diff --git a/types/index.d.ts b/types/index.d.ts index 8cff109..c9a41f2 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -9,7 +9,7 @@ export function load(file: string, options: { content?: Record; sourcemaps?: Record; -}): any; +}): Promise; /** * @param {string} file * @param {{