Merge pull request #62 from tqwewe/feat/support-method-generics

Support generics in dom builder methods
This commit is contained in:
Pauan 2022-04-07 18:04:40 -06:00 committed by GitHub
commit 6b567408fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ macro_rules! apply_methods {
let this = $this.$name($($args),*);
$crate::apply_methods!(this, { $($rest)* })
}};
($this:expr, { .$name:ident::<$($types:ty),*>($($args:expr),*) $($rest:tt)* }) => {{
let this = $this.$name::<$($types),*>($($args),*);
$crate::apply_methods!(this, { $($rest)* })
}};
}