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