From 93b3216014c7f9bac05cd1346421f72c0fbd7824 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Fri, 3 Aug 2018 16:24:02 -0700 Subject: [PATCH] guide: Add imported and exported types to "supported types" reference --- guide/src/reference/types.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/src/reference/types.md b/guide/src/reference/types.md index 4d3ab00e9..00be5bde3 100644 --- a/guide/src/reference/types.md +++ b/guide/src/reference/types.md @@ -4,6 +4,8 @@ The table below provides an overview of all the types that wasm-bindgen can send | Type | `T` parameter | `&T` parameter | `&mut T` parameter | `T` return value | `Option` parameter | `Option` return value | |:---:|:---:|:---:|:---:|:---:|:---:| +| Imported `extern Whatever;` JavaScript Types | Yes | Yes | Yes | Yes | Yes | Yes | +| Exported `struct Whatever` Rust Types | Yes | Yes | Yes | Yes | Yes | Yes | | `str` | No | Yes | No | Yes | Yes | No | | `char` | Yes | No | No | Yes | No | No | | `bool` | Yes | No | No | Yes | No | No |