site/node_modules/esbuild-sass-plugin/lib/cache.d.ts

9 lines
492 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/// <reference types="node" />
import { SassPluginOptions } from './index';
import { OnLoadArgs, OnLoadResult } from 'esbuild';
import { Stats } from 'fs';
type OnLoadCallback = (args: OnLoadArgs) => (OnLoadResult | Promise<OnLoadResult>);
type PluginLoadCallback = (path: string) => (OnLoadResult | Promise<OnLoadResult>);
export declare function useCache(options: SassPluginOptions | undefined, fsStatCache: Map<string, Stats>, loadCallback: PluginLoadCallback): OnLoadCallback;
export {};