Skip to content

Commit

Permalink
Merge pull request #182 from MatrixSystemPVP/patch-1
Browse files Browse the repository at this point in the history
Fixed type definition in ArraySchema
  • Loading branch information
endel authored Oct 31, 2024
2 parents 5000e72 + c7f2925 commit c288594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/ArraySchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class ArraySchema<V = any> implements Array<V>, SchemaDecoderCallbacks {

protected $refId: number = 0;

[n: number]: V;
[n: number]: V | undefined;

//
// Decoding callbacks
Expand Down Expand Up @@ -163,7 +163,7 @@ export class ArraySchema<V = any> implements Array<V>, SchemaDecoderCallbacks {
return value;
}

at(index: number) {
at(index: number): V | undefined {
//
// FIXME: this should be O(1)
//
Expand Down

0 comments on commit c288594

Please sign in to comment.