()
| 124 | """Mapping from the PropTypes js type object to the Julia type.""" |
| 125 | |
| 126 | def shape_or_exact(): |
| 127 | return "lists containing elements {}.\n{}".format( |
| 128 | ", ".join("'{}'".format(t) for t in type_object["value"]), |
| 129 | "Those elements have the following types:\n{}".format( |
| 130 | "\n".join( |
| 131 | create_prop_docstring_jl( |
| 132 | prop_name=prop_name, |
| 133 | type_object=prop, |
| 134 | required=prop["required"], |
| 135 | description=prop.get("description", ""), |
| 136 | indent_num=1, |
| 137 | ) |
| 138 | for prop_name, prop in type_object["value"].items() |
| 139 | ) |
| 140 | ), |
| 141 | ) |
| 142 | |
| 143 | return dict( |
| 144 | array=lambda: "Array", |
nothing calls this directly
no test coverage detected
searching dependent graphs…