Skip to content

Commit a299a38

Browse files
committed
test(linter/tsgolint): fix type errors in tsgolint fixtures (#15915)
1 parent 15d367a commit a299a38

34 files changed

+130
-108
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
await 12;
1+
await 12;
2+
3+
export {};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
declare function bar(): void;
2-
const foo = () => void bar();
2+
const foo = () => void bar();
3+
4+
export {};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
type T1 = 'A' | 'A';
1+
type T1 = 'A' | 'A';
2+
3+
export {};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
const promise = new Promise((resolve, _reject) => resolve("value"));
22
promise;
3+
4+
export {};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const arr = [1, 2, 3];
22
for (const i in arr) {
33
console.log(arr[i]);
4-
}
4+
}
5+
6+
export {};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
function foo(): void {
22
return;
33
}
4-
void foo();
4+
void foo();
5+
6+
export {};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
enum Status {
22
Open = 1,
33
Closed = 'closed',
4-
}
4+
}
5+
6+
export {}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
const str1 = `Hello world`;
1+
const str1 = `Hello world`;
2+
3+
export {};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
const str: string = 'hello';
2-
const redundant = str as string;
2+
const redundant = str as string;
3+
4+
export {};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
declare const anyValue: any;
22
function takesString(str: string): void {}
3-
takesString(anyValue);
3+
takesString(anyValue);
4+
5+
export {};

0 commit comments

Comments
 (0)