Skip to content

Commit

Permalink
fix(rsc): do not require compiledSource in types (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow authored Feb 7, 2023
1 parent 1508a53 commit c559bdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/integration.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ createDescribe(
})

test.each(['/app-dir-mdx/mdxremote', '/app-dir-mdx/compile-mdx'])(
'development - RSC - %s',
'%s',
async (path) => {
const page = await browser().newPage()
page.on('console', (msg) => console.log(msg.text()))
Expand Down
5 changes: 4 additions & 1 deletion src/rsc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { VFileCompatible } from 'vfile'
import { MDXProvider } from '@mdx-js/react'
import { serialize } from './serialize'

export type MDXRemoteProps = MDXRemoteSerializeResult & {
export type MDXRemoteProps = Omit<
MDXRemoteSerializeResult,
'compiledSource'
> & {
source: VFileCompatible
options?: SerializeOptions
/**
Expand Down

0 comments on commit c559bdc

Please sign in to comment.