@@ -343,9 +343,7 @@ expectType<Processor<MdastRoot>>(processorWithRemarkParse)
343
343
expectType < MdastRoot > ( processorWithRemarkParse . parse ( '' ) )
344
344
expectType < UnistNode > ( processorWithRemarkParse . runSync ( mdastRoot ) )
345
345
expectType < UnistNode > ( processorWithRemarkParse . runSync ( hastRoot ) )
346
- expectType < Uint8Array | string | null > (
347
- processorWithRemarkParse . stringify ( mdastRoot )
348
- )
346
+ expectType < Uint8Array | string > ( processorWithRemarkParse . stringify ( mdastRoot ) )
349
347
processorWithRemarkParse . stringify ( hastRoot )
350
348
expectType < VFile > ( processorWithRemarkParse . processSync ( '' ) )
351
349
@@ -361,12 +359,8 @@ expectType<UnistNode>(processorWithRemarkLint.parse(''))
361
359
expectType < MdastRoot > ( processorWithRemarkLint . runSync ( mdastRoot ) )
362
360
// @ts -expect-error: not the correct node type.
363
361
processorWithRemarkLint . 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 ) )
370
364
expectType < VFile > ( processorWithRemarkLint . processSync ( '' ) )
371
365
372
366
// Inspect/transform plugin (implicit).
@@ -386,10 +380,10 @@ expectType<UnistNode>(processorWithRemarkLintImplicit.parse(''))
386
380
expectType < MdastRoot > ( processorWithRemarkLintImplicit . runSync ( mdastRoot ) )
387
381
// @ts -expect-error: not the correct node type.
388
382
processorWithRemarkLintImplicit . runSync ( hastRoot )
389
- expectType < Uint8Array | string | null > (
383
+ expectType < Uint8Array | string > (
390
384
processorWithRemarkLintImplicit . stringify ( mdastRoot )
391
385
)
392
- expectType < Uint8Array | string | null > (
386
+ expectType < Uint8Array | string > (
393
387
processorWithRemarkLintImplicit . stringify ( hastRoot )
394
388
)
395
389
expectType < VFile > ( processorWithRemarkLintImplicit . processSync ( '' ) )
@@ -406,12 +400,8 @@ expectType<UnistNode>(processorWithRemarkRehype.parse(''))
406
400
expectType < HastRoot > ( processorWithRemarkRehype . runSync ( mdastRoot ) )
407
401
// @ts -expect-error: not the correct node type.
408
402
processorWithRemarkRehype . 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 ) )
415
405
expectType < VFile > ( processorWithRemarkRehype . processSync ( '' ) )
416
406
417
407
// Mutate plugin (implicit).
@@ -431,10 +421,10 @@ expectType<UnistNode>(processorWithRemarkRehypeImplicit.parse(''))
431
421
expectType < HastRoot > ( processorWithRemarkRehypeImplicit . runSync ( mdastRoot ) )
432
422
// @ts -expect-error: not the correct node type.
433
423
processorWithRemarkRehypeImplicit . runSync ( hastRoot )
434
- expectType < Uint8Array | string | null > (
424
+ expectType < Uint8Array | string > (
435
425
processorWithRemarkRehypeImplicit . stringify ( hastRoot )
436
426
)
437
- expectType < Uint8Array | string | null > (
427
+ expectType < Uint8Array | string > (
438
428
processorWithRemarkRehypeImplicit . stringify ( mdastRoot )
439
429
)
440
430
expectType < VFile > ( processorWithRemarkRehypeImplicit . processSync ( '' ) )
0 commit comments