Skip to content

Ignore certain exports in d.ts files? #1321

Answered by m1212e
m1212e asked this question in Q&A
Discussion options

You must be logged in to vote

After digging through the sourcecode I found the skip_typescript argument for the napi macro. E.g.:

  #[napi(skip_typescript, js_name = "hiddenButCallable")]
  pub fn test() {
     println!("hello");
  }

I did not find a list of all possible arguments for the macro, maybe it would be a good idea to include this in the docs?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by m1212e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant