Struct stc_ts_dts_mutations::ModuleItemMut
source · [−]Fields
prepend_stmts: Vec<RStmt>
Used to handle
declare function Mix<T, U>(c1: T, c2: U): T & U;
class C1 extends Mix(Private, Private2) {
}
As code above becomes
declare const C1_base: typeof Private & typeof Private2;
declare class C1 extends C1_base {
}
we need to prepend statements.
append_stmts: Vec<RStmt>
Used to handle
export default function someFunc() {
return 'hello!';
}
someFunc.someProp = 'yo';
As the code above becomes
declare function someFunc(): string;
declare namespace someFunc {
var someProp: string;
}
export default someFunc;
we need to append statements.
Trait Implementations
sourceimpl Default for ModuleItemMut
impl Default for ModuleItemMut
sourcefn default() -> ModuleItemMut
fn default() -> ModuleItemMut
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ModuleItemMut
impl Send for ModuleItemMut
impl Sync for ModuleItemMut
impl Unpin for ModuleItemMut
impl UnwindSafe for ModuleItemMut
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more