diff --git a/node-sass/index.d.ts b/node-sass/index.d.ts index a91d56e370..75cc33bcd2 100644 --- a/node-sass/index.d.ts +++ b/node-sass/index.d.ts @@ -5,9 +5,11 @@ /// +type ImporterReturnType = { file: string } | { contents: string } | Error | null; interface Importer { - (url: string, prev: string, done: (data: { file: string; contents: string; }) => void): void; + (url: string, prev: string): ImporterReturnType; + (url: string, prev: string, done: (data: ImporterReturnType) => void): void; } interface Options {