Skip to content

Commit 7cbcd9b

Browse files
committed
fix: use as const array instead of module
1 parent 4b75a95 commit 7cbcd9b

File tree

5 files changed

+5
-21
lines changed

5 files changed

+5
-21
lines changed

libs/core/dom/src/lib/canvas.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
inject,
1414
Injector,
1515
input,
16-
NgModule,
1716
NgZone,
1817
output,
1918
signal,
@@ -241,5 +240,4 @@ export class NgtCanvasImpl {
241240
}
242241
}
243242

244-
@NgModule({ imports: [NgtCanvasImpl, NgtCanvasContent], exports: [NgtCanvasImpl, NgtCanvasContent] })
245-
export class NgtCanvas {}
243+
export const NgtCanvas = [NgtCanvasImpl, NgtCanvasContent] as const;

libs/core/src/lib/portal.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
inject,
1111
Injector,
1212
input,
13-
NgModule,
1413
numberAttribute,
1514
signal,
1615
SkipSelf,
@@ -250,5 +249,4 @@ export class NgtPortalImpl {
250249
}
251250
}
252251

253-
@NgModule({ imports: [NgtPortalImpl, NgtPortalContent], exports: [NgtPortalImpl, NgtPortalContent] })
254-
export class NgtPortal {}
252+
export const NgtPortal = [NgtPortalImpl, NgtPortalContent] as const;

libs/soba/gizmos/src/lib/gizmo-helper/gizmo-helper.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
ElementRef,
1111
Injector,
1212
input,
13-
NgModule,
1413
output,
1514
TemplateRef,
1615
viewChild,
@@ -233,8 +232,4 @@ export class NgtsGizmoHelperImpl {
233232
}
234233
}
235234

236-
@NgModule({
237-
imports: [NgtsGizmoHelperImpl, NgtsGizmoHelperContent],
238-
exports: [NgtsGizmoHelperImpl, NgtsGizmoHelperContent],
239-
})
240-
export class NgtsGizmoHelper {}
235+
export const NgtsGizmoHelper = [NgtsGizmoHelperImpl, NgtsGizmoHelperContent] as const;

libs/soba/misc/src/lib/html/html.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
CUSTOM_ELEMENTS_SCHEMA,
66
ElementRef,
77
input,
8-
NgModule,
98
viewChild,
109
} from '@angular/core';
1110
import { extend, is, NgtThreeElements, omit, pick } from 'angular-three';
@@ -129,5 +128,4 @@ export class NgtsHTMLImpl {
129128
protected readonly DoubleSide = THREE.DoubleSide;
130129
}
131130

132-
@NgModule({ imports: [NgtsHTMLImpl, NgtsHTMLContent], exports: [NgtsHTMLImpl, NgtsHTMLContent] })
133-
export class NgtsHTML {}
131+
export const NgtsHTML = [NgtsHTMLImpl, NgtsHTMLContent] as const;

libs/soba/staging/src/lib/render-texture.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
Component,
66
Directive,
77
Injector,
8-
NgModule,
98
TemplateRef,
109
computed,
1110
contentChild,
@@ -234,8 +233,4 @@ export class NgtsRenderTextureImpl {
234233
}
235234
}
236235

237-
@NgModule({
238-
imports: [NgtsRenderTextureImpl, NgtsRenderTextureContent],
239-
exports: [NgtsRenderTextureImpl, NgtsRenderTextureContent],
240-
})
241-
export class NgtsRenderTexture {}
236+
export const NgtsRenderTexture = [NgtsRenderTextureImpl, NgtsRenderTextureContent] as const;

0 commit comments

Comments
 (0)