Skip to content

Commit 1e78718

Browse files
committed
fix warnings
1 parent c51f7e9 commit 1e78718

File tree

19 files changed

+23
-23
lines changed

19 files changed

+23
-23
lines changed

apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class AppComponent {
7373
.then(({ data }: { data: Record<string, unknown>[] }) => ({
7474
data,
7575
}))
76-
.catch(() => { throw 'Data Loading Error'; });
76+
.catch(() => { throw new Error('Data Loading Error'); });
7777
},
7878
});
7979
this.states = AspNetData.createStore({

apps/demos/Demos/Charts/BarSparklines/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class AppComponent {
3636
this.source = new DataSource({
3737
store: new CustomStore({
3838
load: () => lastValueFrom(http.get('../../../../data/resourceData.json'))
39-
.catch(() => { throw 'Data Loading Error'; }),
39+
.catch(() => { throw new Error('Data Loading Error'); }),
4040
loadMode: 'raw',
4141
}),
4242
filter: ['month', '<=', '12'],

apps/demos/Demos/Charts/ClientSideDataProcessing/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AppComponent implements AfterViewInit {
4343
this.monthWeather = new DataSource({
4444
store: new CustomStore({
4545
load: () => lastValueFrom(this.http.get('../../../../data/monthWeather.json'))
46-
.catch(() => { throw 'Data Loading Error'; }),
46+
.catch(() => { throw new Error('Data Loading Error'); }),
4747
loadMode: 'raw',
4848
}),
4949
filter: ['t', '>', '2'],

apps/demos/Demos/Charts/SignalRService/Vue/TooltipTemplate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import { computed } from 'vue';
2323
2424
const props = withDefaults(defineProps<{
25-
pointInfo: Record<string, any>
25+
pointInfo?: Record<string, any>
2626
}>(), {
2727
pointInfo: () => ({} as Record<string, any>),
2828
});

apps/demos/Demos/Diagram/Adaptability/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class AppComponent {
2929
constructor(http: HttpClient) {
3030
http.get('../../../../data/diagram-flow.json').subscribe({
3131
next: (data) => { this.diagram.instance.import(JSON.stringify(data)); },
32-
error: () => { throw 'Data Loading Error'; },
32+
error: () => { throw new Error('Data Loading Error'); },
3333
});
3434
}
3535
}

apps/demos/Demos/Diagram/Containers/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class AppComponent {
2929
constructor(http: HttpClient) {
3030
http.get('../../../../data/diagram-structure.json').subscribe({
3131
next: (data) => { this.diagram.instance.import(JSON.stringify(data)); },
32-
error: () => { throw 'Data Loading Error'; },
32+
error: () => { throw new Error('Data Loading Error'); },
3333
});
3434
}
3535
}

apps/demos/Demos/Diagram/CustomShapesWithIcons/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class AppComponent {
2929
constructor(http: HttpClient) {
3030
http.get('../../../../data/diagram-hardware.json').subscribe({
3131
next: (data) => { this.diagram.instance.import(JSON.stringify(data)); },
32-
error: () => { throw 'Data Loading Error'; },
32+
error: () => { throw new Error('Data Loading Error'); },
3333
});
3434
}
3535
}

apps/demos/Demos/Diagram/CustomShapesWithTemplates/Vue/CustomShapeTemplate.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
</template>
2727
<script setup lang="ts">
2828
const props = withDefaults(defineProps<{
29-
employee: Record<string, any>
30-
showInfo: Function
29+
employee?: Record<string, any>
30+
showInfo?: Function
3131
}>(), {
3232
employee: () => ({} as Record<string, any>),
3333
showInfo: () => (() => {}),

apps/demos/Demos/Diagram/CustomShapesWithTemplatesWithEditing/Vue/CustomShapeTemplate.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
<script setup lang="ts">
3737
3838
const props = withDefaults(defineProps<{
39-
employee: Record<string, any>
40-
editEmployee: Function
41-
deleteEmployee: Function
39+
employee?: Record<string, any>
40+
editEmployee?: Function
41+
deleteEmployee?: Function
4242
}>(), {
4343
employee: () => ({}),
4444
editEmployee: () => ({}),

apps/demos/Demos/Diagram/CustomShapesWithTexts/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class AppComponent {
3535

3636
http.get('../../../../data/diagram-employees.json').subscribe({
3737
next: (data) => { this.diagram.instance.import(JSON.stringify(data)); },
38-
error: () => { throw 'Data Loading Error'; },
38+
error: () => { throw new Error('Data Loading Error'); },
3939
});
4040
}
4141
}

0 commit comments

Comments
 (0)