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.
1 parent 3e90ba0 commit fc2891fCopy full SHA for fc2891f
test-d/fixed-length-array.ts
@@ -4,6 +4,7 @@ import type {FixedLengthArray} from '../index.d.ts';
4
type FixedToThreeStrings = FixedLengthArray<string, 3>;
5
6
expectAssignable<FixedToThreeStrings>(['a', 'b', 'c']);
7
+expectAssignable<readonly [string, string, string]>({} as FixedToThreeStrings);
8
9
expectType<string>({} as FixedToThreeStrings[0]);
10
expectType<string>({} as FixedToThreeStrings[1]);
0 commit comments