pub struct LazyTypeScriptBindings { /* private fields */ }
Expand description
A builder for generating TypeScript bindings lazily
Implementations§
Source§impl LazyTypeScriptBindings
impl LazyTypeScriptBindings
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new builder for generating TypeScript bindings that inputs from the given path and outputs javascript to the given path
Sourcepub fn with_binding(
self,
input_path: impl AsRef<Path>,
output_path: impl AsRef<Path>,
) -> Self
pub fn with_binding( self, input_path: impl AsRef<Path>, output_path: impl AsRef<Path>, ) -> Self
Add a binding to generate
Sourcepub fn with_minify_level(self, minify_level: MinifyLevel) -> Self
pub fn with_minify_level(self, minify_level: MinifyLevel) -> Self
Set the minify level for the bindings
Sourcepub fn with_watching(self, path: impl AsRef<Path>) -> Self
pub fn with_watching(self, path: impl AsRef<Path>) -> Self
Watch any .js or .ts files in a directory and re-generate the bindings when they change
Trait Implementations§
Source§impl Default for LazyTypeScriptBindings
impl Default for LazyTypeScriptBindings
Source§fn default() -> LazyTypeScriptBindings
fn default() -> LazyTypeScriptBindings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LazyTypeScriptBindings
impl RefUnwindSafe for LazyTypeScriptBindings
impl Send for LazyTypeScriptBindings
impl Sync for LazyTypeScriptBindings
impl Unpin for LazyTypeScriptBindings
impl UnwindSafe for LazyTypeScriptBindings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more