From 9c66d91a42b22b4f464febcdd992d69cbf56f7b2 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Wed, 18 Sep 2024 19:57:09 +0300 Subject: [PATCH] fix(type): add length prop to `TSpawnChunks` type --- src/main/ts/spawn.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/ts/spawn.ts b/src/main/ts/spawn.ts index 2b32448..762a4bc 100644 --- a/src/main/ts/spawn.ts +++ b/src/main/ts/spawn.ts @@ -12,7 +12,11 @@ export type TPushable = { push(...args: T[]): number } export type TJoinable = { join(sep?: string): string } -export type TSpawnStoreChunks = Iterable & TPushable & TJoinable +export type THasLength = { length: number } + +export type TArrayLike = Iterable & TPushable & TJoinable & THasLength + +export type TSpawnStoreChunks = TArrayLike export type TSpawnStore = { stdout: TSpawnStoreChunks