How to import *.ts file in other directory?

Hi Guys
My directory is like this:

I want to use point.ts, so I import this file in demo.ts:

import {PointProvider} from "../../providers/point/point"

This seems to work. But is there any elegant way to import point.ts? ‘…/…/’ maybe not the best way.


What does elegant mean?

@AaronSterling Such as use absolute path. If I can declare the project root, I can import the file like this:


So I can move the files without change the import path.