Urara-Blog/node_modules/.pnpm-store/v3/files/db/adcd0172c42c2cf193dc2f0518b78985690a794a6c72a3eeda06f1a8f33a63a6d0e665900082189332b11206869f137ac9d56271b3b6c8493a489fdbc6a497
2022-08-14 01:14:53 +08:00

27 lines
726 B
Text

export interface Processed {
code: string;
map?: string | object;
dependencies?: string[];
toString?: () => string;
}
export declare type MarkupPreprocessor = (options: {
content: string;
filename?: string;
}) => Processed | void | Promise<Processed | void>;
export declare type Preprocessor = (options: {
/**
* The script/style tag content
*/
content: string;
attributes: Record<string, string | boolean>;
/**
* The whole Svelte file content
*/
markup: string;
filename?: string;
}) => Processed | void | Promise<Processed | void>;
export interface PreprocessorGroup {
markup?: MarkupPreprocessor;
style?: Preprocessor;
script?: Preprocessor;
}