Allow parser.preprocess to return a Promise (#17679)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-09-12 05:03:05 +08:00
1 parent 0e4baf561d
commit afd57d3247
7 files changed
+45 -4

No files matched your search

+1 -1
View File
@@ -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`