Skip to content

Commit 5ca19b6

Browse files
committed
test: make them pass
1 parent c0e0b7b commit 5ca19b6

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

packages/examples/src/app/xy-pad/box-drag-preview/box-drag-preview.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,5 @@ import { Subject } from 'rxjs';
3838
`
3939
]
4040
})
41-
export class BoxDragPreviewComponent implements OnInit {
42-
@Input() title;
43-
44-
constructor() {}
45-
46-
ngOnInit() {}
41+
export class BoxDragPreviewComponent {
4742
}

packages/examples/src/app/xy-pad/crosshairs.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { Component, Input } from '@angular/core';
1414
})
1515
export class CrosshairsComponent {
1616
math = Math;
17-
@Input() x: number;
18-
@Input() y: number;
17+
@Input() x!: number;
18+
@Input() y!: number;
1919
@Input() width: number = 400;
2020
@Input() height: number = 400;
2121
}

packages/examples/src/app/xy-pad/spot.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ import { Component, OnInit, Input } from '@angular/core';
2020
]
2121
})
2222
export class SpotComponent {
23-
@Input() title: string;
2423
@Input() compensate = false;
2524
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export class Spot {
1+
export interface Spot {
22
id: number;
33
x: number;
44
y: number;
5-
fromCube?: boolean = false;
6-
}
5+
fromCube?: boolean;
6+
}

packages/examples/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"moduleResolution": "node",
1010
"emitDecoratorMetadata": true,
1111
"experimentalDecorators": true,
12+
"keyofStringsOnly": true,
1213
"target": "es5",
1314
"typeRoots": ["node_modules/@types"],
1415
"lib": ["es2017", "dom"],

0 commit comments

Comments
 (0)