Simple setup:
some_dir |_ dir_a - index.ts - tsconfig.json |_ dir_b - index.ts
dir_b/index.ts:
function foo(): numb