From 022693d6d6f95e3fb7b776b4f44cbef63dbfac72 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 20 Feb 2024 02:10:35 +0700 Subject: [PATCH] Fix docs --- index.d.ts | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 065c444..7cdaf03 100644 --- a/index.d.ts +++ b/index.d.ts @@ -10,7 +10,7 @@ export type Options = { /** When this option is `true`, the method returns `false` if the stream has already been closed. - @default: `false` with `isStream()`, `true` with the other methods + @default true */ checkOpen?: boolean; }; diff --git a/readme.md b/readme.md index 2efdb0a..c70a41c 100644 --- a/readme.md +++ b/readme.md @@ -48,7 +48,7 @@ Returns a `boolean` for whether it's a [`stream.Transform`](https://nodejs.org/a #### checkOpen Type: `boolean`\ -Default: `false` with [`isStream()`](#isstreamstream-options), `true` with the other methods +Default: `true` When this option is `true`, the method returns `false` if the stream has already been closed.