Allow parser.preprocess to return a Promise (#17679)
This commit is contained in:
1 parent
0e4baf561d
commit
afd57d3247
7 files changed
+45
-4
No files matched your search
+1
-1
@@ -149,7 +149,7 @@ function hasIgnorePragma(text: string): boolean;
|
||||
_(Optional)_ The preprocess function can process the input text before passing into `parse` function.
|
||||
|
||||
```ts
|
||||
function preprocess(text: string, options: object): string;
|
||||
function preprocess(text: string, options: object): string | Promise<string>;
|
||||
```
|
||||
|
||||
### `printers`
|
||||
|
||||
Reference in new issue
Block a user