@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.
- package/index.d.ts +22 -22
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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 */
|