Skip to content

Commit 2b0b04d

Browse files
committed
Updated the README for 0.6.1
1 parent 068cdd0 commit 2b0b04d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Isomorphic library to handle passing high-level data structures between Assembly
2525
- [Reference API](#reference-api)
2626
- [Motivation](#motivation)
2727
- [Performance](#performance)
28+
- [Production](#production)
2829
- [Projects using as-bind](#projects-using-as-bind)
2930
- [FAQ and Common Issues](#faq-and-common-issues)
3031
- [Contributing](#contributing)
@@ -166,18 +167,16 @@ asyncTask();
166167

167168
## Supported Data Types
168169

169-
**TL;DR:** Currently Numbers, Strings, and Typed Arrays are supported. Returning a high-level data type from an imported JavaScript function, [BigInt](https://github.com/WebAssembly/JS-BigInt-integration), and passing AssemblyScript Classes will be coming later.
170-
171-
**Note:** As discovered in #28, [`Array<NumberType>`](https://docs.assemblyscript.org/standard-library/array#api) is **NOT** the same as [`TypedArray`](https://docs.assemblyscript.org/standard-library/typedarray#api), and may not work for your use case. You want to use [`TypedArray`](https://docs.assemblyscript.org/standard-library/typedarray#api) where possible.
170+
**TL;DR:** Currently Numbers, Strings, Typed Arrays, and common Array<T> types are supported. Returning a high-level data type from an imported JavaScript function, and better AssemblyScript Class support will be coming later. For more detailed type support information, please see the [`lib/asbind-instance/supported-ref-types.js`](./lib/asbind-instance/supported-ref-types.js) and [`test/assembly/test.ts`](./test/assembly/test.ts).
172171

173172
<!-- Generated from: https://www.tablesgenerator.com/markdown_tables# -->
174173

175-
| Function & Direction | Number (32-bit Integers and 32-bit / 64-bit Floats) | Strings | Int8Array | Uint8Array | Int16Array | UInt16Array | Int32Array | Uint32Array | Float32Array | Float64Array | AssemblyScript Classes |
176-
| ------------------------------------------- | --------------------------------------------------- | ------- | --------- | ---------- | ---------- | ----------- | ---------- | ----------- | ------------ | ------------ | ---------------------- |
177-
| Exported AssemblyScript Function Parameters | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
178-
| Exported AssemblyScript Function Return | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
179-
| Imported JavaScript Function Paramters | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
180-
| Imported JavaScript Function Return | ✔️ | | | | | | | | || |
174+
| Function Direction & AssemblyScript Type | Exported AssemblyScript Function Parameters | Exported AssemblyScript Function Return | Imported JavaScript Function Paramters | Imported JavaScript Function Return |
175+
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------- | --------------------------------------- | -------------------------------------- | ----------------------------------- |
176+
| [Number (32-bit Integers and 32-bit / 64-bit Floats)](https://www.assemblyscript.org/types.html#types) | ✔️ | ✔️ | ✔️ | ✔️ |
177+
| [Strings](https://www.assemblyscript.org/stdlib/string.html#string) | ✔️ | ✔️ | ✔️ | |
178+
| [TypedArray](https://www.assemblyscript.org/stdlib/typedarray.html#typedarray) | ✔️ | ✔️ | ✔️ | |
179+
| [Array<T> (Numbers, strings, booleans, etc...)](https://www.assemblyscript.org/stdlib/array.html#array) | ✔️ | ✔️ | ✔️ | |
181180

182181
## Supported AssemblyScript Runtime Variants
183182

0 commit comments

Comments
 (0)