npm.io
1.0.3 • Published 2 years ago

@types/node-sass-tilde-importer

Licence
MIT
Version
1.0.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/node-sass-tilde-importer

Summary

This package contains type definitions for node-sass-tilde-importer (https://github.com/matthewdavidson/node-sass-tilde-importer#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-sass-tilde-importer.

index.d.ts

import { ImporterReturnType } from "node-sass";

/**
 * A node-sass custom importer which turns ~ into absolute paths to the nearest parent node_modules directory.
 */
declare function importer(url: string, prev: string): ImporterReturnType;
declare function importer(url: string, prev: string, done: (data: ImporterReturnType) => void): void;

export = importer;

Additional Details

Credits

These definitions were written by Piotr Błażejewicz.