Skip to content

Commit e62cabe

Browse files
committed
tests
1 parent fe12f26 commit e62cabe

File tree

4 files changed

+21
-25
lines changed

4 files changed

+21
-25
lines changed

.github/dependabot.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ updates:
9595
- "@emotion*"
9696
exclude-patterns:
9797
- "jest-runner-eslint"
98-
eslint:
99-
patterns:
100-
- "eslint*"
101-
- "@typescript-eslint*"
10298
jest:
10399
patterns:
104100
- "jest"

scripts/apitypings/testdata/genericmap/genericmap.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// From codersdk/genericmap.go
22
export interface Buzz {
3-
readonly foo: Foo
4-
readonly bazz: string
3+
readonly foo: Foo
4+
readonly bazz: string
55
}
66

77
// From codersdk/genericmap.go
88
export interface Foo {
9-
readonly bar: string
9+
readonly bar: string
1010
}
1111

1212
// From codersdk/genericmap.go
1313
export interface FooBuzz<R extends Custom> {
14-
readonly something: (readonly R[])
14+
readonly something: (readonly R[])
1515
}
1616

1717
// From codersdk/genericmap.go

scripts/apitypings/testdata/generics/generics.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
// From codersdk/generics.go
22
export interface Complex<C extends comparable, S extends Single, T extends Custom> {
3-
readonly dynamic: Fields<C, boolean, string, S>
4-
readonly order: FieldsDiffOrder<C, string, S, T>
5-
readonly comparable: C
6-
readonly single: S
7-
readonly static: Static
3+
readonly dynamic: Fields<C, boolean, string, S>
4+
readonly order: FieldsDiffOrder<C, string, S, T>
5+
readonly comparable: C
6+
readonly single: S
7+
readonly static: Static
88
}
99

1010
// From codersdk/generics.go
1111
export interface Dynamic<A extends any, S extends Single> {
12-
readonly dynamic: Fields<boolean, A, string, S>
13-
readonly comparable: boolean
12+
readonly dynamic: Fields<boolean, A, string, S>
13+
readonly comparable: boolean
1414
}
1515

1616
// From codersdk/generics.go
1717
export interface Fields<C extends comparable, A extends any, T extends Custom, S extends Single> {
18-
readonly comparable: C
19-
readonly any: A
20-
readonly custom: T
21-
readonly again: T
22-
readonly single_constraint: S
18+
readonly comparable: C
19+
readonly any: A
20+
readonly custom: T
21+
readonly again: T
22+
readonly single_constraint: S
2323
}
2424

2525
// From codersdk/generics.go
2626
export interface FieldsDiffOrder<A extends any, C extends comparable, S extends Single, T extends Custom> {
27-
readonly Fields: Fields<C, A, T, S>
27+
readonly Fields: Fields<C, A, T, S>
2828
}
2929

3030
// From codersdk/generics.go
3131
export interface Static {
32-
readonly static: Fields<string, number, number, string>
32+
readonly static: Fields<string, number, number, string>
3333
}
3434

3535
// From codersdk/generics.go
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// From codersdk/genericslice.go
22
export interface Bar {
3-
readonly Bar: string
3+
readonly Bar: string
44
}
55

66
// From codersdk/genericslice.go
77
export interface Foo<R extends any> {
8-
readonly Slice: (readonly R[])
9-
readonly TwoD: (readonly (readonly R[])[])
8+
readonly Slice: (readonly R[])
9+
readonly TwoD: (readonly (readonly R[])[])
1010
}

0 commit comments

Comments
 (0)