From f417e78eef47a08e5ef71adffc5802a66293d561 Mon Sep 17 00:00:00 2001 From: Stan James Date: Mon, 26 Aug 2019 17:07:27 +0200 Subject: [PATCH] Allow null as separator in TailOptions, per docs (#37902) To have no separator, `tail` docs specify to pass `null`, so it should be valid to pass. See: https://www.npmjs.com/package/tail#constructor-parameters >separator: the line separator token (default: /[\r]{0,1}\n/ to handle linux/mac (9+)/windows). **Pass null if your file is binary there's no >line separator.** --- types/tail/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/tail/index.d.ts b/types/tail/index.d.ts index c2135bc079..965f2a9deb 100644 --- a/types/tail/index.d.ts +++ b/types/tail/index.d.ts @@ -6,7 +6,7 @@ declare namespace Tail { interface TailOptions { - separator?: string | RegExp; + separator?: string | RegExp | null; fromBeginning?: boolean; fsWatchOptions?: Record; follow?: boolean;