dockleryxk / ng-simple-slideshow

A simple, responsive slideshow for Angular 4+.
https://ng-simple-slideshow.firebaseapp.com/
MIT License
123 stars 77 forks source link

Cumbersone TypeScript export/import. What is ɵa & ɵb? #71

Open ghost opened 5 years ago

ghost commented 5 years ago

The exports in ng-simple-slideshow.d.ts are as following:

/**
 * Generated bundle index. Do not edit.
 */
export * from './public_api';
export { SlideshowComponent as ɵa } from './src/app/modules/slideshow/slideshow.component';
export { SwipeService as ɵb } from './src/app/modules/slideshow/swipe.service';

So if you want to use typings for ng-simple-slideshow you have to import the component with import { ɵa as SlideshowComponent } from 'ng-simple-slideshow';

What is ɵa, ɵb, and how are they used? Why is the component and the service not exported directly, e.g.

/**
 * Generated bundle index. Do not edit.
 */
export * from './public_api';
export { SlideshowComponent } from './src/app/modules/slideshow/slideshow.component';
export { SwipeService } from './src/app/modules/slideshow/swipe.service';
dockleryxk commented 5 years ago

Must be some weird ng-packagr config that I was unaware of. I will have to look into this. I never intended for the SwipeService to be used outside of the Component though.

MortenKJ commented 5 years ago

Agree, it would be nice to be able to import SlideshowComponent, without having to import as