@@ -689,7 +689,7 @@ export class ParamType {
689
689
*/
690
690
walk ( value : any , process : ParamTypeWalkFunc ) : any {
691
691
if ( this . isArray ( ) ) {
692
- if ( ! Array . isArray ( value ) ) { throw new Error ( "invlaid array value" ) ; }
692
+ if ( ! Array . isArray ( value ) ) { throw new Error ( "invalid array value" ) ; }
693
693
if ( this . arrayLength !== - 1 && value . length !== this . arrayLength ) {
694
694
throw new Error ( "array is wrong length" ) ;
695
695
}
@@ -698,7 +698,7 @@ export class ParamType {
698
698
}
699
699
700
700
if ( this . isTuple ( ) ) {
701
- if ( ! Array . isArray ( value ) ) { throw new Error ( "invlaid tuple value" ) ; }
701
+ if ( ! Array . isArray ( value ) ) { throw new Error ( "invalid tuple value" ) ; }
702
702
if ( value . length !== this . components . length ) {
703
703
throw new Error ( "array is wrong length" ) ;
704
704
}
@@ -712,7 +712,7 @@ export class ParamType {
712
712
#walkAsync( promises : Array < Promise < void > > , value : any , process : ParamTypeWalkAsyncFunc , setValue : ( value : any ) => void ) : void {
713
713
714
714
if ( this . isArray ( ) ) {
715
- if ( ! Array . isArray ( value ) ) { throw new Error ( "invlaid array value" ) ; }
715
+ if ( ! Array . isArray ( value ) ) { throw new Error ( "invalid array value" ) ; }
716
716
if ( this . arrayLength !== - 1 && value . length !== this . arrayLength ) {
717
717
throw new Error ( "array is wrong length" ) ;
718
718
}
@@ -738,7 +738,7 @@ export class ParamType {
738
738
739
739
} else {
740
740
if ( value == null || typeof ( value ) !== "object" ) {
741
- throw new Error ( "invlaid tuple value" ) ;
741
+ throw new Error ( "invalid tuple value" ) ;
742
742
}
743
743
744
744
result = components . map ( ( param ) => {
0 commit comments