File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ export type {
22
22
23
23
export { unified } from './lib/index.js'
24
24
25
+ // See: <https://github.com/sindresorhus/type-fest/blob/main/source/empty-object.d.ts>
26
+ declare const emptyObjectSymbol : unique symbol
27
+
25
28
/**
26
29
* Interface of known results from compilers.
27
30
*
@@ -98,5 +101,6 @@ export interface Data {
98
101
* export {} // You may not need this, but it makes sure the file is a module.
99
102
* ```
100
103
*/
101
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
102
- export interface Settings { }
104
+ export interface Settings {
105
+ [ emptyObjectSymbol ] ?: never
106
+ }
Original file line number Diff line number Diff line change @@ -464,10 +464,6 @@ declare module './index.js' {
464
464
interface CompileResultMap {
465
465
ReactNode : ReactNode
466
466
}
467
-
468
- interface Data {
469
- something ?: string | undefined
470
- }
471
467
}
472
468
473
469
// Compile plugin (to a non-node).
@@ -552,6 +548,15 @@ expectType<Processor>(
552
548
} )
553
549
)
554
550
551
+ /**
552
+ * Register our setting.
553
+ */
554
+ declare module './index.js' {
555
+ interface Settings {
556
+ something ?: string | undefined
557
+ }
558
+ }
559
+
555
560
expectType < Processor > (
556
561
unified ( ) . use ( {
557
562
plugins : [
You can’t perform that action at this time.
0 commit comments