Include rust-module.d.cts in the biome linter output

Some of this is also part of our public API, so let's also check it
(and avoid API clashes like `arguments`).
This commit is contained in:
Simon Hausmann 2025-01-13 19:30:58 +01:00 committed by Simon Hausmann
parent 87b893add7
commit dacfea7466
2 changed files with 5 additions and 5 deletions

View file

@ -281,7 +281,7 @@ impl JsComponentInstance {
&self,
env: Env,
callback_name: String,
arguments: Vec<JsUnknown>,
callback_arguments: Vec<JsUnknown>,
) -> Result<JsUnknown> {
let ty = self
.inner
@ -297,7 +297,7 @@ impl JsComponentInstance {
let args = match ty {
Type::Callback(function) | Type::Function(function) => {
Self::invoke_args(env, &callback_name, arguments, &function.args)?
Self::invoke_args(env, &callback_name, callback_arguments, &function.args)?
}
_ => {
return Err(napi::Error::from_reason(
@ -319,7 +319,7 @@ impl JsComponentInstance {
env: Env,
global_name: String,
callback_name: String,
arguments: Vec<JsUnknown>,
callback_arguments: Vec<JsUnknown>,
) -> Result<JsUnknown> {
let ty = self
.inner
@ -340,7 +340,7 @@ impl JsComponentInstance {
let args = match ty {
Type::Callback(function) | Type::Function(function) => {
Self::invoke_args(env, &callback_name, arguments, &function.args)?
Self::invoke_args(env, &callback_name, callback_arguments, &function.args)?
}
_ => {
return Err(napi::Error::from_reason(