Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Jun 11, 2019 · 2 comments
Open

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

ghost opened this issue Jun 11, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 11, 2019

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
Copy link
Owner

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants