How to import generated Provider?

I have used the generator to produce a provider:
ionic g provider MyData

I am trying to import it into a page.js.
I have tried the following but it cannot find module:
import {MyData} from ‘./providersx/my-data’;
import {MyData} from ‘…/…/providersx/my-data’;

I have tried it with a page.js and page.ts ( using CLI 2.0.0-beta.24 )

beta.22 produced a .js file where as bet.24 produces a .ts file