fix: loosen preprocessor types

pull/6904/head
bluwy 5 years ago
parent 2484acea26
commit 7e07c8e8d8

@ -19,8 +19,8 @@ export interface Processed {
export type MarkupPreprocessor = (options: { export type MarkupPreprocessor = (options: {
content: string; content: string;
filename: string; filename?: string;
}) => Processed | Promise<Processed>; }) => Processed | void | Promise<Processed | void>;
export type Preprocessor = (options: { export type Preprocessor = (options: {
/** /**
@ -33,7 +33,7 @@ export type Preprocessor = (options: {
*/ */
markup: string; markup: string;
filename?: string; filename?: string;
}) => Processed | Promise<Processed>; }) => Processed | void | Promise<Processed | void>;
export interface PreprocessorGroup { export interface PreprocessorGroup {
markup?: MarkupPreprocessor; markup?: MarkupPreprocessor;

Loading…
Cancel
Save