Skip to content

Commit

Permalink
docs: remove @ts-expect-error for untyped jsx, jsxs (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Dec 9, 2024
1 parent 50f4e13 commit b992224
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/packages/next.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ You can also call `codeToHast` to get the HTML abstract syntax tree, and render
```tsx
import { toJsxRuntime } from 'hast-util-to-jsx-runtime'
import { Fragment } from 'react'
// @ts-expect-error -- untyped
import { jsx, jsxs } from 'react/jsx-runtime'
import { codeToHast } from 'shiki'

Expand Down Expand Up @@ -80,7 +79,6 @@ Create a `shared.ts` for highlighter:
```ts
import { toJsxRuntime } from 'hast-util-to-jsx-runtime'
import { Fragment } from 'react'
// @ts-expect-error -- untyped
import { jsx, jsxs } from 'react/jsx-runtime'
import { codeToHast } from 'shiki/bundle/web'

Expand Down

0 comments on commit b992224

Please sign in to comment.