Skip to content

Commit 2864286

Browse files
authored
Fix value type in store<T> definition (AssemblyScript#1251)
1 parent 0c02d01 commit 2864286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/assembly/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ declare function trunc<T = f32 | f64>(value: T): T;
112112
/** Loads a value of the specified type from memory. Equivalent to dereferncing a pointer in other languages. */
113113
declare function load<T>(ptr: usize, immOffset?: usize, immAlign?: usize): T;
114114
/** Stores a value of the specified type to memory. Equivalent to dereferencing a pointer in other languages when assigning a value. */
115-
declare function store<T>(ptr: usize, value: any, immOffset?: usize, immAlign?: usize): void;
115+
declare function store<T>(ptr: usize, value: T, immOffset?: usize, immAlign?: usize): void;
116116
/** Emits an unreachable operation that results in a runtime error when executed. Both a statement and an expression. */
117117
declare function unreachable(): never;
118118

0 commit comments

Comments
 (0)