diff options
author | 2023-03-07 13:41:24 +0000 | |
---|---|---|
committer | 2023-03-07 13:41:24 +0000 | |
commit | fe88f89512d583e651f114fe010a35b33bae1910 (patch) | |
tree | ab4bec484b1b3c6de9169cb3c13e1273f933bfbb /packages/markdown/remark/src | |
parent | e1858e633484d0e1eca0e3ad72af679fc12271e0 (diff) | |
download | astro-fe88f89512d583e651f114fe010a35b33bae1910.tar.gz astro-fe88f89512d583e651f114fe010a35b33bae1910.tar.zst astro-fe88f89512d583e651f114fe010a35b33bae1910.zip |
chore: use directive `@ts-expect-error` instead of `@ts-ignore` (#6429)
Diffstat (limited to 'packages/markdown/remark/src')
-rw-r--r-- | packages/markdown/remark/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/markdown/remark/src/index.ts b/packages/markdown/remark/src/index.ts index fdd669280..79b5b3ad5 100644 --- a/packages/markdown/remark/src/index.ts +++ b/packages/markdown/remark/src/index.ts @@ -144,7 +144,7 @@ function prefixError(err: any, prefix: string) { const wrappedError = new Error(`${prefix}${err ? `: ${err}` : ''}`); try { wrappedError.stack = err.stack; - // @ts-ignore + // @ts-expect-error wrappedError.cause = err; } catch (error) { // It's ok if we could not set the stack or cause - the message is the most important part |