Skip to content

Commit 824ae96

Browse files
committed
restore code from head of main
1 parent 21bef49 commit 824ae96

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export const plugin: Plugin<AstPathStackEntry> = {
101101
},
102102
printers: {
103103
'pug-ast': {
104-
print(
104+
// @ts-expect-error: Prettier allow it to be async if we don't do recursively print
105+
async print(
105106
path: AstPath,
106107
options: ParserOptions & PugParserOptions,
107108
print: (path: AstPath) => Doc,

src/printer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { types } from 'node:util';
12
import type { BuiltInParserName, Options, RequiredOptions } from 'prettier';
23
import { format } from 'prettier';
34
import type PrettierAngularPlugin from 'prettier/plugins/angular';

0 commit comments

Comments
 (0)