Skip to content

Commit ca60e6e

Browse files
committed
refactor(types): convert to type-only export
1 parent 05bb711 commit ca60e6e

File tree

9 files changed

+12
-14
lines changed

9 files changed

+12
-14
lines changed

projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {INavAttributes, INavLinkProps} from '../../coreui.types';
1+
import { INavAttributes, INavLinkProps } from '../../coreui.types';
22

33
interface IBreadcrumbItem {
44
label: string;
@@ -9,4 +9,4 @@ interface IBreadcrumbItem {
99
queryParams?: { [key: string]: any };
1010
}
1111

12-
export { INavAttributes, INavLinkProps, IBreadcrumbItem };
12+
export type { INavAttributes, INavLinkProps, IBreadcrumbItem };

projects/coreui-angular/src/lib/breadcrumb/public_api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { IBreadcrumbItem } from './breadcrumb-item/breadcrumb-item';
1+
export type { IBreadcrumbItem } from './breadcrumb-item/breadcrumb-item';
22
export { BreadcrumbItemComponent } from './breadcrumb-item/breadcrumb-item.component';
33
export { BreadcrumbComponent } from './breadcrumb/breadcrumb.component';
44
export { BreadcrumbRouterComponent } from './breadcrumb-router/breadcrumb-router.component';

projects/coreui-angular/src/lib/progress/public_api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { IProgress, IProgressBar, IProgressBarStacked } from './progress.type';
1+
export type { IProgress, IProgressBar, IProgressBarStacked } from './progress.type';
22
export { ProgressComponent } from './progress.component';
33
export { ProgressStackedComponent } from './progress-stacked.component';
44
export { ProgressBarComponent } from './progress-bar.component';
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export { IntersectionService, IIntersectionObserverInit } from './intersection.service';
2-
export { ListenersService, IListenersConfig } from './listeners.service';
1+
export { IntersectionService, type IIntersectionObserverInit } from './intersection.service';
2+
export { ListenersService, type IListenersConfig } from './listeners.service';
33
export { ClassToggleService } from './class-toggle.service';
44
export { LocalStorageService } from './local-storage.service';
55
export { InMemoryStorageService } from './in-memory-storage.service';
6-
export { ColorModeService, ColorMode } from './color-mode.service';
6+
export { ColorModeService, type ColorMode } from './color-mode.service';
77
export { UIDService } from './uid.service';
88
export { RtlService } from './rtl.service';

projects/coreui-angular/src/lib/sidebar/public_api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export { SidebarTogglerDirective } from './sidebar-toggler/sidebar-toggler.direc
66
export { SidebarHeaderComponent } from './sidebar-header/sidebar-header.component';
77
export { SidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';
88

9-
export { SidebarNavComponent, INavData, SidebarNavHelper } from './sidebar-nav';
9+
export { SidebarNavComponent, type INavData, SidebarNavHelper } from './sidebar-nav';
1010

1111
export { SidebarModule } from './sidebar.module';

projects/coreui-angular/src/lib/sidebar/sidebar-nav/public_api.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ export { SidebarNavIconPipe } from './sidebar-nav-icon.pipe';
1111
export { SidebarNavBadgePipe } from './sidebar-nav-badge.pipe';
1212
export { SidebarNavItemClassPipe } from './sidebar-nav-item-class.pipe';
1313
export { SidebarNavLinkPipe } from './sidebar-nav-link.pipe';
14-
export { INavData } from './sidebar-nav';
15-
16-
14+
export type { INavData } from './sidebar-nav';

projects/coreui-angular/src/lib/toast/public_api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export { ToastComponent } from './toast/toast.component';
22
export { ToastBodyComponent } from './toast-body/toast-body.component';
33
export { ToastHeaderComponent } from './toast-header/toast-header.component';
4-
export { ToasterComponent, TToasterPlacement, ToasterPlacement } from './toaster/toaster.component';
4+
export { ToasterComponent, type TToasterPlacement, ToasterPlacement } from './toaster/toaster.component';
55
export { ToasterService } from './toaster/toaster.service';
66
export { ToasterHostDirective } from './toaster/toaster-host.directive';
77
export { ToastCloseDirective } from './toast-close.directive';
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { IconSetService, IIconSet } from './icon-set.service';
1+
export { IconSetService, type IIconSet } from './icon-set.service';
22
export { IconSetModule } from './icon-set.module';

projects/coreui-icons-angular/src/public-api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
export { IconDirective } from './lib/icon/icon.directive';
55
export { IconComponent } from './lib/icon/icon.component';
66
export { IconModule } from './lib/icon/icon.module';
7-
export { IconSetService, IIconSet } from './lib/icon-set/icon-set.service';
7+
export { IconSetService, type IIconSet } from './lib/icon-set/icon-set.service';
88
export { IconSetModule } from './lib/icon-set/icon-set.module';

0 commit comments

Comments
 (0)