mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 14:32:00 +00:00
Fix types with no feature enabled
This commit is contained in:
parent
ae9304a189
commit
0b76882990
1 changed files with 4 additions and 0 deletions
|
@ -27,11 +27,15 @@ pub use web_sys;
|
|||
pub type Element = web_sys::Element;
|
||||
#[cfg(feature = "ssr")]
|
||||
pub type Element = String;
|
||||
#[cfg(not(any(feature = "csr", feature = "hydrate", feature = "ssr")))]
|
||||
pub type Element = web_sys::Element;
|
||||
|
||||
#[cfg(any(feature = "csr", feature = "hydrate"))]
|
||||
pub type Node = web_sys::Node;
|
||||
#[cfg(feature = "ssr")]
|
||||
pub type Node = String;
|
||||
#[cfg(not(any(feature = "csr", feature = "hydrate", feature = "ssr")))]
|
||||
pub type Node = web_sys::Node;
|
||||
|
||||
use leptos_reactive::Scope;
|
||||
pub use wasm_bindgen::UnwrapThrowExt;
|
||||
|
|
Loading…
Reference in a new issue