@next/mdx 14.1.1-canary.56 → 14.1.1-canary.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +22 -22
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,33 +1,33 @@
1
- /* eslint-disable */
2
- import { NextConfig } from 'next'
3
- import { CompileOptions } from '@mdx-js/mdx'
4
- import { RuleSetConditionAbsolute } from 'webpack'
1
+ import type { NextConfig } from 'next'
2
+ import type { Options } from '@mdx-js/loader'
3
+ import type { RuleSetConditionAbsolute } from 'webpack'
5
4
 
6
5
  type WithMDX = (config: NextConfig) => NextConfig
7
6
 
8
- export interface NextMDXOptions {
9
- /**
10
- * A webpack rule test to match files to treat as MDX.
11
- *
12
- * @default /\.mdx$/
13
- * @example
14
- * // Support both .md and .mdx files.
15
- * /\.mdx?$/
16
- */
17
- extension?: RuleSetConditionAbsolute
7
+ declare namespace nextMDX {
8
+ interface NextMDXOptions {
9
+ /**
10
+ * A webpack rule test to match files to treat as MDX.
11
+ *
12
+ * @default /\.mdx$/
13
+ * @example
14
+ * // Support both .md and .mdx files.
15
+ * /\.mdx?$/
16
+ */
17
+ extension?: RuleSetConditionAbsolute
18
18
 
19
- /**
20
- * The options to pass to MDX.
21
- *
22
- * @see https://mdxjs.com/packages/mdx/#api
23
- */
24
- options?: CompileOptions
19
+ /**
20
+ * The options to pass to MDX.
21
+ *
22
+ * @see https://mdxjs.com/packages/mdx/#api
23
+ */
24
+ options?: Options
25
+ }
25
26
  }
26
27
 
27
28
  /**
28
29
  * Use [MDX](https://github.com/mdx-js/mdx) with [Next.js](https://github.com/vercel/next.js)
29
30
  */
30
- declare function nextMDX(options?: NextMDXOptions): WithMDX
31
+ declare function nextMDX(options?: nextMDX.NextMDXOptions): WithMDX
31
32
 
32
33
  export = nextMDX
33
- /* eslint=enable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/mdx",
3
- "version": "14.1.1-canary.56",
3
+ "version": "14.1.1-canary.57",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "repository": {