Skip to content

Commit c288594

Browse files
authored
Merge pull request #182 from MatrixSystemPVP/patch-1
Fixed type definition in ArraySchema
2 parents 5000e72 + c7f2925 commit c288594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/ArraySchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class ArraySchema<V = any> implements Array<V>, SchemaDecoderCallbacks {
8888

8989
protected $refId: number = 0;
9090

91-
[n: number]: V;
91+
[n: number]: V | undefined;
9292

9393
//
9494
// Decoding callbacks
@@ -163,7 +163,7 @@ export class ArraySchema<V = any> implements Array<V>, SchemaDecoderCallbacks {
163163
return value;
164164
}
165165

166-
at(index: number) {
166+
at(index: number): V | undefined {
167167
//
168168
// FIXME: this should be O(1)
169169
//

0 commit comments

Comments
 (0)