Skip to content

Commit 1ec9d9d

Browse files
Harmeet SinghHarmeet Singh
authored andcommitted
fix the typescript compile issue
1 parent 4c2be20 commit 1ec9d9d

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/lib/datagrid/datagrid.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type KeyOf<T> = Extract<keyof T, string>;
2424
templateUrl: './datagrid.component.html',
2525
imports: [CommonModule, FormsModule, NgbDgPaginationComponent, ReactiveFormsModule],
2626
styleUrls: ['./datagrid.component.scss'],
27+
standalone:true,
2728
changeDetection: ChangeDetectionStrategy.OnPush
2829
})
2930
export class Datagrid<T = any> implements AfterContentInit, OnChanges {

tsconfig.lib.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"declaration": true,
66
"declarationMap": true,
77
"inlineSources": true,
8-
"types": []
8+
"types": [],
9+
"target": "ES2020",
10+
"lib": ["ES2020", "DOM"]
911
},
1012
"exclude": [
1113
"src/**/*.spec.ts",

tsconfig.lib.prod.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "./tsconfig.lib.json",
33
"compilerOptions": {
4-
"declarationMap": false
4+
"declarationMap": false,
5+
"target": "ES2020",
6+
"lib": ["ES2020", "DOM"]
57
},
68
"angularCompilerOptions": {
79
"compilationMode": "partial"

0 commit comments

Comments
 (0)