Skip to content

Commit 7e07c8e

Browse files
committed
fix: loosen preprocessor types
1 parent 2484ace commit 7e07c8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/preprocess/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export interface Processed {
1919

2020
export type MarkupPreprocessor = (options: {
2121
content: string;
22-
filename: string;
23-
}) => Processed | Promise<Processed>;
22+
filename?: string;
23+
}) => Processed | void | Promise<Processed | void>;
2424

2525
export type Preprocessor = (options: {
2626
/**
@@ -33,7 +33,7 @@ export type Preprocessor = (options: {
3333
*/
3434
markup: string;
3535
filename?: string;
36-
}) => Processed | Promise<Processed>;
36+
}) => Processed | void | Promise<Processed | void>;
3737

3838
export interface PreprocessorGroup {
3939
markup?: MarkupPreprocessor;

0 commit comments

Comments
 (0)