Skip to content

Commit 1e54f8d

Browse files
committed
Add type
1 parent 5a490bf commit 1e54f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ export const printers: Record<string, Printer> = (function () {
11111111
if (original.embed) {
11121112
printer.embed = new Proxy(original.embed, {
11131113
apply(target, thisArg, args) {
1114-
let [path, options] = args
1114+
let [path, options] = args as Parameters<typeof original.embed>
11151115
mutateOriginalText(path, options)
11161116
return Reflect.apply(target, thisArg, args)
11171117
},

0 commit comments

Comments
 (0)