```ts
function parseCsvLine(line: string): string[] {
  return line.split(/,(?=(?:[^"]*"[^"]*)*"|$)/);
}
```