Skip to main content

zero_value_ts

Function zero_value_ts 

Source
pub fn zero_value_ts(
    type_ref: &TypeRef,
    inline: Option<&Refinement>,
    types: &HashMap<String, TypeDecl>,
) -> Option<String>
Expand description

The TypeScript zero-value expression for type_ref (with an optional inline field refinement), or None if the type is not zeroable.