Skip to content

Commit fc2891f

Browse files
committed
test: add test validating assignability with readonly tuples
1 parent 3e90ba0 commit fc2891f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-d/fixed-length-array.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {FixedLengthArray} from '../index.d.ts';
44
type FixedToThreeStrings = FixedLengthArray<string, 3>;
55

66
expectAssignable<FixedToThreeStrings>(['a', 'b', 'c']);
7+
expectAssignable<readonly [string, string, string]>({} as FixedToThreeStrings);
78

89
expectType<string>({} as FixedToThreeStrings[0]);
910
expectType<string>({} as FixedToThreeStrings[1]);

0 commit comments

Comments
 (0)