Skip to content

Commit

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

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

export type THasLength = { length: number }

export type TArrayLike<T> = Iterable<T> & TPushable<T> & TJoinable & THasLength
export type TArrayLike<T> = Iterable<T> & TPushable<T> & TJoinable & { length: number, [i: number]: T | undefined }

export type TSpawnStoreChunks = TArrayLike<string| Buffer>

Expand Down

0 comments on commit c61538a

Please sign in to comment.