def METHOD_NAME(self) -> str:
    """Serialize a schema to typescript string"""
    sv: SchemaView = self.schemaview
    enums = self.generate_enums(sv.all_enums())
    template_obj = Template(default_template)
    out_str = template_obj.render(
        gen=self,
        schema=self.schemaview.schema,
        view=self.schemaview,
        enums=enums,
    )
    return out_str