Skip to content

Commit

Permalink
ignore with any
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed May 10, 2024
1 parent fff0823 commit eb8dae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/lib/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ export async function getDocBySlug(slug: string) {
// mdx imports can be automatically source from the components directory
// cwd: path.join(root, "components"),
cwd,
xdmOptions(options) {
// FIXME can someone eliminate any here?
xdmOptions(options: any) {
// this is the recommended way to add custom remark/rehype plugins:
// The syntax might look weird, but it protects you in case we add/remove
// plugins in the future.
// @ts-expect-error FIXME what's wrong?
options.remarkPlugins = [
...(options.remarkPlugins ?? []),
remarkCodeSandboxURLUpdater,
Expand Down

0 comments on commit eb8dae0

Please sign in to comment.