Chunk.separate TypeScript Function

whats the deal with Chunk.separate self type? I already have a chunk, i just want it split in two to make a Tuple of two chunks. wheres this either come from? The return type of separate is exactly what i want but i have a Chunk.Chunk<T>. why the need to split via either only to then split via separate?

// Chunk.separate
const separate: <unknown, unknown>(self: Chunk.Chunk<Either<unknown, unknown>>) => [Chunk.Chunk<unknown>, Chunk.Chunk<unknown>]
Was this page helpful?