Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7f9c1a0

Browse files
piotr-olesxiaozs
andauthoredJul 18, 2021
fix: use correct type in extends directive for __newArray (#22)
Co-authored-by: xiaozs <koumuyou@163.com>
1 parent 852d0d6 commit 7f9c1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/runtime/types/runtime.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface AsLoaderRuntime {
7373
/** Allocates a new string in the module's memory and returns a reference (pointer) to it. */
7474
__newString(str: string): Pointer<string>;
7575
/** Allocates a new array in the module's memory and returns a reference (pointer) to it. */
76-
__newArray<T extends ArrayLike<T>>(id: number, values: T): Pointer<T>;
76+
__newArray<T extends ArrayLike<unknown>>(id: number, values: T): Pointer<T>;
7777

7878
/** Allocates an instance of the class represented by the specified id. */
7979
__new<T>(size: number, id: TypeId<T>): Pointer<T>;

0 commit comments

Comments
 (0)
Please sign in to comment.