Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 3488fe2

Browse files
committed
Accurate Importer return type
1 parent cd6884d commit 3488fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare module "node-sass" {
7373
* @param done a callback function to invoke on async completion, takes an object literal containing
7474
*
7575
*/
76-
type Importer = (url: string, prev: string, done: (data: ImporterReturn) => void) => ImporterReturn
76+
type Importer = (url: string, prev: string, done: (data: ImporterReturn) => void) => ImporterReturn | null | never
7777
type ImporterReturn = { file: string } | { contents: string } | Error | null
7878

7979
type RenderOptions = Partial<{

0 commit comments

Comments
 (0)