@@ -278,7 +278,7 @@ declare namespace i8 {
278
278
export const MAX_VALUE : i8 ;
279
279
}
280
280
/** Converts any other numeric value to a 16-bit signed integer. */
281
- declare function i16 ( value : any ) : i8 ;
281
+ declare function i16 ( value : any ) : i16 ;
282
282
declare namespace i16 {
283
283
/** Smallest representable value. */
284
284
export const MIN_VALUE : i16 ;
@@ -543,31 +543,31 @@ declare namespace i64 {
543
543
/** Converts any other numeric value to a 32-bit (in WASM32) respectivel 64-bit (in WASM64) signed integer. */
544
544
declare var isize : typeof i32 | typeof i64 ;
545
545
/** Converts any other numeric value to an 8-bit unsigned integer. */
546
- declare function u8 ( value : any ) : i8 ;
546
+ declare function u8 ( value : any ) : u8 ;
547
547
declare namespace u8 {
548
548
/** Smallest representable value. */
549
549
export const MIN_VALUE : u8 ;
550
550
/** Largest representable value. */
551
551
export const MAX_VALUE : u8 ;
552
552
}
553
553
/** Converts any other numeric value to a 16-bit unsigned integer. */
554
- declare function u16 ( value : any ) : i8 ;
554
+ declare function u16 ( value : any ) : u16 ;
555
555
declare namespace u16 {
556
556
/** Smallest representable value. */
557
557
export const MIN_VALUE : u16 ;
558
558
/** Largest representable value. */
559
559
export const MAX_VALUE : u16 ;
560
560
}
561
561
/** Converts any other numeric value to a 32-bit unsigned integer. */
562
- declare function u32 ( value : any ) : i32 ;
562
+ declare function u32 ( value : any ) : u32 ;
563
563
declare namespace u32 {
564
564
/** Smallest representable value. */
565
565
export const MIN_VALUE : u32 ;
566
566
/** Largest representable value. */
567
567
export const MAX_VALUE : u32 ;
568
568
}
569
569
/** Converts any other numeric value to a 64-bit unsigned integer. */
570
- declare function u64 ( value : any ) : i64 ;
570
+ declare function u64 ( value : any ) : u64 ;
571
571
declare namespace u64 {
572
572
/** Smallest representable value. */
573
573
export const MIN_VALUE : u64 ;
0 commit comments