mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 04:51:23 +00:00
Add skip_typescript attribute to prevent .d.ts emit (#2016)
* Add skip_typescript attribute to prevent .d.ts emit * Add guide page for typescript attribute
This commit is contained in:
@ -100,6 +100,7 @@ macro_rules! shared_api {
|
||||
name: &'a str,
|
||||
variants: Vec<EnumVariant<'a>>,
|
||||
comments: Vec<&'a str>,
|
||||
generate_typescript: bool,
|
||||
}
|
||||
|
||||
struct EnumVariant<'a> {
|
||||
@ -110,6 +111,7 @@ macro_rules! shared_api {
|
||||
struct Function<'a> {
|
||||
arg_names: Vec<String>,
|
||||
name: &'a str,
|
||||
generate_typescript: bool,
|
||||
}
|
||||
|
||||
struct Struct<'a> {
|
||||
@ -117,12 +119,14 @@ macro_rules! shared_api {
|
||||
fields: Vec<StructField<'a>>,
|
||||
comments: Vec<&'a str>,
|
||||
is_inspectable: bool,
|
||||
generate_typescript: bool,
|
||||
}
|
||||
|
||||
struct StructField<'a> {
|
||||
name: &'a str,
|
||||
readonly: bool,
|
||||
comments: Vec<&'a str>,
|
||||
generate_typescript: bool,
|
||||
}
|
||||
|
||||
struct LocalModule<'a> {
|
||||
|
Reference in New Issue
Block a user