@@ -343,9 +343,7 @@ expectType<Processor<MdastRoot>>(processorWithRemarkParse)
343343expectType < MdastRoot > ( processorWithRemarkParse . parse ( '' ) )
344344expectType < UnistNode > ( processorWithRemarkParse . runSync ( mdastRoot ) )
345345expectType < UnistNode > ( processorWithRemarkParse . runSync ( hastRoot ) )
346- expectType < Uint8Array | string | null > (
347- processorWithRemarkParse . stringify ( mdastRoot )
348- )
346+ expectType < Uint8Array | string > ( processorWithRemarkParse . stringify ( mdastRoot ) )
349347processorWithRemarkParse . stringify ( hastRoot )
350348expectType < VFile > ( processorWithRemarkParse . processSync ( '' ) )
351349
@@ -361,12 +359,8 @@ expectType<UnistNode>(processorWithRemarkLint.parse(''))
361359expectType < MdastRoot > ( processorWithRemarkLint . runSync ( mdastRoot ) )
362360// @ts -expect-error: not the correct node type.
363361processorWithRemarkLint . runSync ( hastRoot )
364- expectType < Uint8Array | string | null > (
365- processorWithRemarkLint . stringify ( mdastRoot )
366- )
367- expectType < Uint8Array | string | null > (
368- processorWithRemarkLint . stringify ( hastRoot )
369- )
362+ expectType < Uint8Array | string > ( processorWithRemarkLint . stringify ( mdastRoot ) )
363+ expectType < Uint8Array | string > ( processorWithRemarkLint . stringify ( hastRoot ) )
370364expectType < VFile > ( processorWithRemarkLint . processSync ( '' ) )
371365
372366// Inspect/transform plugin (implicit).
@@ -386,10 +380,10 @@ expectType<UnistNode>(processorWithRemarkLintImplicit.parse(''))
386380expectType < MdastRoot > ( processorWithRemarkLintImplicit . runSync ( mdastRoot ) )
387381// @ts -expect-error: not the correct node type.
388382processorWithRemarkLintImplicit . runSync ( hastRoot )
389- expectType < Uint8Array | string | null > (
383+ expectType < Uint8Array | string > (
390384 processorWithRemarkLintImplicit . stringify ( mdastRoot )
391385)
392- expectType < Uint8Array | string | null > (
386+ expectType < Uint8Array | string > (
393387 processorWithRemarkLintImplicit . stringify ( hastRoot )
394388)
395389expectType < VFile > ( processorWithRemarkLintImplicit . processSync ( '' ) )
@@ -406,12 +400,8 @@ expectType<UnistNode>(processorWithRemarkRehype.parse(''))
406400expectType < HastRoot > ( processorWithRemarkRehype . runSync ( mdastRoot ) )
407401// @ts -expect-error: not the correct node type.
408402processorWithRemarkRehype . runSync ( hastRoot )
409- expectType < Uint8Array | string | null > (
410- processorWithRemarkRehype . stringify ( hastRoot )
411- )
412- expectType < Uint8Array | string | null > (
413- processorWithRemarkRehype . stringify ( mdastRoot )
414- )
403+ expectType < Uint8Array | string > ( processorWithRemarkRehype . stringify ( hastRoot ) )
404+ expectType < Uint8Array | string > ( processorWithRemarkRehype . stringify ( mdastRoot ) )
415405expectType < VFile > ( processorWithRemarkRehype . processSync ( '' ) )
416406
417407// Mutate plugin (implicit).
@@ -431,10 +421,10 @@ expectType<UnistNode>(processorWithRemarkRehypeImplicit.parse(''))
431421expectType < HastRoot > ( processorWithRemarkRehypeImplicit . runSync ( mdastRoot ) )
432422// @ts -expect-error: not the correct node type.
433423processorWithRemarkRehypeImplicit . runSync ( hastRoot )
434- expectType < Uint8Array | string | null > (
424+ expectType < Uint8Array | string > (
435425 processorWithRemarkRehypeImplicit . stringify ( hastRoot )
436426)
437- expectType < Uint8Array | string | null > (
427+ expectType < Uint8Array | string > (
438428 processorWithRemarkRehypeImplicit . stringify ( mdastRoot )
439429)
440430expectType < VFile > ( processorWithRemarkRehypeImplicit . processSync ( '' ) )
0 commit comments