Enable nested namespace (#951) (#2105)

* Enable nested namespace (#951)

* Specify the namespace as array (#951)

* added an example to the document

Co-authored-by: Alex Crichton <alex@alexcrichton.com>
This commit is contained in:
Hajime Fukuda
2020-05-27 08:36:20 -07:00
committed by GitHub
parent e0ad7bfeac
commit 87663c6d2a
11 changed files with 144 additions and 24 deletions

View File

@ -22,7 +22,7 @@ macro_rules! shared_api {
struct Import<'a> {
module: ImportModule<'a>,
js_namespace: Option<&'a str>,
js_namespace: Option<Vec<String>>,
kind: ImportKind<'a>,
}