json_to_ts/main.py
def python_type_to_typescript_type(py_type: str) -> str:
    """
    Converts Python type to TypeScript type.
    """
    if py_type in ["int", "float"]:
        return "number"
    elif py_type == "bool":
        return "boolean"
    elif py_type == "str":
        return "string"
    elif py_type == "list":
        return "Array<any>"
    elif py_type == "dict":
        return "any"
    else:
        return "any"

    Converts Python type to TypeScript type.
    
Converts Python type to TypeScript type.
Converts Python type to TypeScript type .
def python_type_to_typescript_type(py_type: str) -> str:
    if py_type in ["int", "float"]:
        return "number"
    elif py_type == "bool":
        return "boolean"
    elif py_type == "str":
        return "string"
    elif py_type == "list":
        return "Array<any>"
    elif py_type == "dict":
        return "any"
    else:
        return "any"
def python_type_to_typescript_type ( py_type : str ) -> str : if py_type in [ "int" , "float" ] : return "number" elif py_type == "bool" : return "boolean" elif py_type == "str" : return "string" elif py_type == "list" : return "Array<any>" elif py_type == "dict" : return "any" else : return "any"
Converts Python type to TypeScript type.
Converts Python type to TypeScript type .
"""
    Converts Python type to TypeScript type.
    """
py_type
str