pub enum TsType {
Show 31 variants
TsAny(TsAny),
TsUnknown(TsUnknown),
TsNumber(TsNumber),
TsObject(TsObject),
TsBoolean(TsBoolean),
TsBigint(TsBigint),
TsString(TsString),
TsSymbol(TsSymbol),
TsVoid(TsVoid),
TsUndefined(TsUndefined),
TsNull(TsNull),
TsNever(TsNever),
TsThis(TsThis),
TsLiteral(TsLiteral),
TsPredicate(TsPredicate),
TsTuple(TsTuple),
TsParen(TsParen),
TsTypeRef(TsTypeRef),
TsTemplate(TsTemplate),
TsMappedType(TsMappedType),
TsImport(TsImport),
TsArray(TsArray),
TsIndexedArray(TsIndexedArray),
TsTypeOperator(TsTypeOperator),
TsIntersection(TsIntersection),
TsUnion(TsUnion),
TsFnType(TsFnType),
TsConstructorType(TsConstructorType),
TsConditionalType(TsConditionalType),
TsObjectType(TsObjectType),
TsInfer(TsInfer),
}
Expand description
A TypeScript type
Variants§
TsAny(TsAny)
TsUnknown(TsUnknown)
TsNumber(TsNumber)
TsObject(TsObject)
TsBoolean(TsBoolean)
TsBigint(TsBigint)
TsString(TsString)
TsSymbol(TsSymbol)
TsVoid(TsVoid)
TsUndefined(TsUndefined)
TsNull(TsNull)
TsNever(TsNever)
TsThis(TsThis)
TsLiteral(TsLiteral)
TsPredicate(TsPredicate)
TsTuple(TsTuple)
TsParen(TsParen)
TsTypeRef(TsTypeRef)
TsTemplate(TsTemplate)
TsMappedType(TsMappedType)
TsImport(TsImport)
TsArray(TsArray)
TsIndexedArray(TsIndexedArray)
TsTypeOperator(TsTypeOperator)
TsIntersection(TsIntersection)
TsUnion(TsUnion)
TsFnType(TsFnType)
TsConstructorType(TsConstructorType)
TsConditionalType(TsConditionalType)
TsObjectType(TsObjectType)
TsInfer(TsInfer)
Trait Implementations§
Source§impl From<TsConditionalType> for TsType
impl From<TsConditionalType> for TsType
Source§fn from(node: TsConditionalType) -> TsType
fn from(node: TsConditionalType) -> TsType
Converts to this type from the input type.
Source§impl From<TsConstructorType> for TsType
impl From<TsConstructorType> for TsType
Source§fn from(node: TsConstructorType) -> TsType
fn from(node: TsConstructorType) -> TsType
Converts to this type from the input type.
Source§impl From<TsIndexedArray> for TsType
impl From<TsIndexedArray> for TsType
Source§fn from(node: TsIndexedArray) -> TsType
fn from(node: TsIndexedArray) -> TsType
Converts to this type from the input type.
Source§impl From<TsIntersection> for TsType
impl From<TsIntersection> for TsType
Source§fn from(node: TsIntersection) -> TsType
fn from(node: TsIntersection) -> TsType
Converts to this type from the input type.
Source§impl From<TsMappedType> for TsType
impl From<TsMappedType> for TsType
Source§fn from(node: TsMappedType) -> TsType
fn from(node: TsMappedType) -> TsType
Converts to this type from the input type.
Source§impl From<TsObjectType> for TsType
impl From<TsObjectType> for TsType
Source§fn from(node: TsObjectType) -> TsType
fn from(node: TsObjectType) -> TsType
Converts to this type from the input type.
Source§impl From<TsPredicate> for TsType
impl From<TsPredicate> for TsType
Source§fn from(node: TsPredicate) -> TsType
fn from(node: TsPredicate) -> TsType
Converts to this type from the input type.
Source§impl From<TsTemplate> for TsType
impl From<TsTemplate> for TsType
Source§fn from(node: TsTemplate) -> TsType
fn from(node: TsTemplate) -> TsType
Converts to this type from the input type.
Source§impl From<TsTypeOperator> for TsType
impl From<TsTypeOperator> for TsType
Source§fn from(node: TsTypeOperator) -> TsType
fn from(node: TsTypeOperator) -> TsType
Converts to this type from the input type.
Source§impl From<TsUndefined> for TsType
impl From<TsUndefined> for TsType
Source§fn from(node: TsUndefined) -> TsType
fn from(node: TsUndefined) -> TsType
Converts to this type from the input type.
impl Eq for TsType
impl StructuralPartialEq for TsType
Auto Trait Implementations§
impl Freeze for TsType
impl RefUnwindSafe for TsType
impl Send for TsType
impl Sync for TsType
impl Unpin for TsType
impl UnwindSafe for TsType
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