Skip to content

Commit

Permalink
fix type declarations (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Jun 27, 2021
1 parent 1bbde87 commit 5eebd2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ under the licensing terms detailed in LICENSE:
* bnbarak <[email protected]>
* Colin Eberhardt <[email protected]>
* Ryan Pivovar <[email protected]>
* Joe Pea <[email protected]>

Portions of this software are derived from third-party works licensed under
the following terms:
Expand Down
10 changes: 5 additions & 5 deletions std/assembly/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ declare namespace i8 {
export const MAX_VALUE: i8;
}
/** Converts any other numeric value to a 16-bit signed integer. */
declare function i16(value: any): i8;
declare function i16(value: any): i16;
declare namespace i16 {
/** Smallest representable value. */
export const MIN_VALUE: i16;
Expand Down Expand Up @@ -543,31 +543,31 @@ declare namespace i64 {
/** Converts any other numeric value to a 32-bit (in WASM32) respectivel 64-bit (in WASM64) signed integer. */
declare var isize: typeof i32 | typeof i64;
/** Converts any other numeric value to an 8-bit unsigned integer. */
declare function u8(value: any): i8;
declare function u8(value: any): u8;
declare namespace u8 {
/** Smallest representable value. */
export const MIN_VALUE: u8;
/** Largest representable value. */
export const MAX_VALUE: u8;
}
/** Converts any other numeric value to a 16-bit unsigned integer. */
declare function u16(value: any): i8;
declare function u16(value: any): u16;
declare namespace u16 {
/** Smallest representable value. */
export const MIN_VALUE: u16;
/** Largest representable value. */
export const MAX_VALUE: u16;
}
/** Converts any other numeric value to a 32-bit unsigned integer. */
declare function u32(value: any): i32;
declare function u32(value: any): u32;
declare namespace u32 {
/** Smallest representable value. */
export const MIN_VALUE: u32;
/** Largest representable value. */
export const MAX_VALUE: u32;
}
/** Converts any other numeric value to a 64-bit unsigned integer. */
declare function u64(value: any): i64;
declare function u64(value: any): u64;
declare namespace u64 {
/** Smallest representable value. */
export const MIN_VALUE: u64;
Expand Down

0 comments on commit 5eebd2f

Please sign in to comment.