<repo_name>vertical-blank/ts-jsonl<file_sep>/index.ts
interface Hoge {
  num: number
  s: string
}

function main(): void {
  const objs = jsonLinesToObjs<Hoge>('xxxxxxxxx');
  console.log(objs);

  objs.forEach(o => {
    console.log(o.num);
    console.log(o.s);
  })
}

function jsonLinesToObjs<T>(v: string): T[]  {
  return [
    JSON.parse(`{"num": 1, "s": "x"}`),
    JSON.parse(`{"num": 2, "s": "y"}`),
  ];
}

main();
