pub fn extract_object_fields(typedef: &TypeDef) -> Vec<Field>Expand description
Extracts fields from an Object TypeDef, unwrapping Named if necessary.
This is used by the derive macro to implement #[ts(flatten)]. When a field
is marked with flatten, its type’s fields are extracted and merged into the
containing object.
§Panics
Panics if the TypeDef is not an Object (or Named wrapping an Object).