@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
15 lines (13 loc) • 775 B
TypeScript
import type * as nodeSass from "node-sass";
import type * as sass from "sass";
import type * as sassEmbedded from "sass-embedded";
import type { SassApiType } from "../types.d.ts";
/**
* Verifies that the implementation and version of Sass is supported by this loader.
*/
declare const getCompileFunction: (implementation: typeof sass | typeof sassEmbedded | typeof nodeSass, apiType: SassApiType) => Promise<((sassOptions: nodeSass.SyncOptions) => nodeSass.Result) | ((sassOptions: nodeSass.SyncOptions) => Promise<void | nodeSass.Result>) | ((sassOptions: {
data: string;
} & sass.StringOptions<"sync">) => sass.CompileResult) | ((sassOptions: {
data: string;
} & sassEmbedded.StringOptions<"sync">) => sassEmbedded.CompileResult)>;
export = getCompileFunction;