Skip to content

Commit 53ea83d

Browse files
committed
chore: error type
1 parent a53ba1d commit 53ea83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/eval.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const toFunction = (exp: string): Function => {
1919
try {
2020
return new Function(`$data`, `$el`, `with($data){${exp}}`)
2121
} catch (e) {
22-
console.error(`${e.message} in expression: ${exp}`)
22+
console.error(`${(e as Error).message} in expression: ${exp}`)
2323
return () => {}
2424
}
2525
}

0 commit comments

Comments
 (0)