Debian Codegraph @

node/esbuild-sass-plugin/lib/render.d.ts

raw
1 import { PartialMessage } from 'esbuild';
2 import { SassPluginOptions } from './index';
3 import { StringOptions } from 'sass/types/options';
4 import { CompileResult } from 'sass/types/compile';
5 export type RenderSass = (path: string) => Promise<RenderResult>;
6 export type RenderResult = {
7 cssText: string;
8 watchFiles: string[];
9 warnings?: PartialMessage[];
10 };
11 export type Compiler = (source: string, options?: StringOptions<any>) => CompileResult | Promise<CompileResult>;
12 export declare function createRenderer(options: SassPluginOptions | undefined, sourcemap: boolean, onDispose: (callback: () => void) => void): Promise<RenderSass>;