pub struct TypeAlias {
pub export: bool,
pub name: String,
pub parameters: Vec<&'static str>,
pub ty: Type,
}
Expand description
A top-level type
definition.
Example:
type Foo = { value: number };
See: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-aliases
Fields§
§export: bool
Whether the type is marked with export
.
name: String
The name of the type definition.
parameters: Vec<&'static str>
The generic parameters of the type definition.
ty: Type
The content of the type definition.
Implementations§
Trait Implementations§
Source§impl From<TypeAlias> for Definition
impl From<TypeAlias> for Definition
impl StructuralPartialEq for TypeAlias
Auto Trait Implementations§
impl Freeze for TypeAlias
impl RefUnwindSafe for TypeAlias
impl Send for TypeAlias
impl Sync for TypeAlias
impl Unpin for TypeAlias
impl UnwindSafe for TypeAlias
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