Skip to content

Commit f98186f

Browse files
author
Bryce Kalow
authored
fix type imports so they work when consumed (#99)
1 parent 875e56b commit f98186f

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

hydrate.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactNode } from 'react'
2-
import { MdxRemote } from 'types'
2+
import { MdxRemote } from './types'
33

44
export default function hydrate(
55
/** Rendered MDX output. The direct output of `renderToString`. */

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import hydrate from 'hydrate'
2-
import renderToString from 'render-to-string'
1+
import hydrate from './hydrate'
2+
import renderToString from './render-to-string'
33

44
declare module 'next-mdx-remote/render-to-string' {
55
export default renderToString

render-to-string.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { MdxRemote } from 'types'
21
import { Pluggable, Compiler } from 'unified'
2+
import { MdxRemote } from './types'
33

44
/**
55
* Runs the MDX renderer on the MDX string provided with the components and data provided.

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"moduleResolution": "node",
1111
"esModuleInterop": true,
1212
"jsx": "preserve",
13-
"baseUrl": ".",
1413
"typeRoots": ["node_modules/@types", "./"]
1514
},
1615
"exclude": ["__tests__"]

0 commit comments

Comments
 (0)