mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
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.**
This commit is contained in:
committed by
Sheetal Nandi
parent
8af0fb2198
commit
f417e78eef
2
types/tail/index.d.ts
vendored
2
types/tail/index.d.ts
vendored
@@ -6,7 +6,7 @@
|
||||
|
||||
declare namespace Tail {
|
||||
interface TailOptions {
|
||||
separator?: string | RegExp;
|
||||
separator?: string | RegExp | null;
|
||||
fromBeginning?: boolean;
|
||||
fsWatchOptions?: Record<string, any>;
|
||||
follow?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user