diff --git a/pydantic2ts/cli/script.py b/pydantic2ts/cli/script.py index 8518395..68953cf 100644 --- a/pydantic2ts/cli/script.py +++ b/pydantic2ts/cli/script.py @@ -105,6 +105,8 @@ def clean_output_file(output_filename: str) -> None: for i, line in enumerate(lines): if line.rstrip("\r\n") == "export interface _Master_ {": start = i + elif line.rstrip("\r\n") == "export interface _Master_ {}": + start = i elif (start is not None) and line.rstrip("\r\n") == "}": end = i break