From a304b661c54a5064d8894907faaf7cd49906666f Mon Sep 17 00:00:00 2001 From: Luiz Corte Real Date: Fri, 16 Aug 2019 10:53:55 -0300 Subject: [PATCH] Change type of preprocessor functions to include Promise --- src/compiler/preprocess/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/preprocess/index.ts b/src/compiler/preprocess/index.ts index 51668a93f7..2faa3b97f2 100644 --- a/src/compiler/preprocess/index.ts +++ b/src/compiler/preprocess/index.ts @@ -8,7 +8,7 @@ export interface PreprocessorGroup { markup?: (options: { content: string; filename: string; - }) => Processed; + }) => Processed | Promise; style?: Preprocessor; script?: Preprocessor; } @@ -17,7 +17,7 @@ export type Preprocessor = (options: { content: string; attributes: Record; filename?: string; -}) => Processed; +}) => Processed | Promise; function parse_attributes(str: string) { const attrs = {};