We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2127c62 + 7b615ff commit aa51198Copy full SHA for aa51198
type-definitions/ts-tests/seq.ts
@@ -10,3 +10,17 @@ test('#size', () => {
10
readonly size: number | undefined;
11
}>();
12
});
13
+
14
+test('Set.Indexed concat', () => {
15
+ let s: Seq.Indexed<number> = Seq([1]);
16
+ expect(s).type.toBe<Seq.Indexed<number>>();
17
+ expect(s.concat([4, 5, 6])).type.toBe<Seq.Indexed<number>>();
18
+ expect(s.concat(Seq([4, 5, 6]))).type.toBe<Seq.Indexed<number>>();
19
+});
20
21
+test('Set concat', () => {
22
+ let s: Seq<unknown, unknown> = Seq([1]);
23
+ expect(s).type.toBe<Seq<unknown, unknown>>();
24
+ expect(s.concat([4, 5, 6])).type.toBe<Seq<unknown, unknown>>();
25
+ expect(s.concat(Seq([4, 5, 6]))).type.toBe<Seq<unknown, unknown>>();
26
0 commit comments