index.ts

function foo(bar: string, baz: number): (string | number)[] {
  return [bar, baz];
}

bash

tsc index.ts

相关文章: