Skip to content

Commit

Permalink
fix(type): add length prop to TSpawnChunks type
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Sep 18, 2024
1 parent 7db0912 commit 9c66d91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/ts/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export type TPushable<T = any> = { push(...args: T[]): number }

export type TJoinable = { join(sep?: string): string }

export type TSpawnStoreChunks = Iterable<string| Buffer> & TPushable<string| Buffer> & TJoinable
export type THasLength = { length: number }

export type TArrayLike<T> = Iterable<T> & TPushable<T> & TJoinable & THasLength

export type TSpawnStoreChunks = TArrayLike<string| Buffer>

export type TSpawnStore = {
stdout: TSpawnStoreChunks
Expand Down

0 comments on commit 9c66d91

Please sign in to comment.