def METHOD_NAME(type_definition: dict[str, Any]) -> list[str]:
    """Get the type definition as a ReStructuredText (name or ref) this is for dictionary based types."""
    result = []
    if type_definition["name"] == "__type":
        result.append("\nProperties:")
        for child in type_definition.get("children", []):
            result += METHOD_NAME(child)
        return result
    options = []
    if "type" in type_definition:
        options.append(_format_type(type_definition["type"]))
    if type_definition["flags"].get("isOptional"):
        options.append("optional")
    options_string = f" ({', '.join(options)})" if options else ""
    result.append(f" * ``{type_definition['name']}``{options_string}")
    return result