@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
14 lines (13 loc) • 781 B
text/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.mts";
/**
* Verifies that the implementation and version of Sass is supported by this loader.
*/
declare const getCompileFunction: (implementation: typeof nodeSass | typeof sass | typeof sassEmbedded, apiType: SassApiType) => Promise<((sassOptions: nodeSass.SyncOptions) => nodeSass.Result) | ((sassOptions: nodeSass.SyncOptions) => Promise<nodeSass.Result | void>) | ((sassOptions: sass.StringOptions<"sync"> & {
data: string;
}) => sass.CompileResult) | ((sassOptions: sassEmbedded.StringOptions<"sync"> & {
data: string;
}) => sassEmbedded.CompileResult)>;
export default getCompileFunction;