Ts2python

Latest version: v0.7.6

Safety actively analyzes 723119 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.7.6

-------------
- Typescript Records are not translated to Dict[]-types
- Omitted semicolons do not cause the parser to fail, anymore

0.7.5

-------------
- bugfixes related to comments
- bugs 21, 19
- several changes to make ts2python digest the current vscode.d.ts

0.7.4

-------------
- comments can be preserved: option "-k" or "--comments". Exception:
Inline comments, e.g. "dog /* my little dog */: int", will not be preserved

0.7.3

-------------
- better packaging

0.7.2

-------------
- bugfixes
- more advanced types supported (by the parser only! which
means they are read but may not be translated to Python
very well)

0.7.1

-------------
- rendering of anonymous interfaces as toplevel-TypedDicts now
possible (use switch -a toplevel) to avoid error messages by
type checkers
- added rudimentary support for more advanced types, e.g.
"type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }"
Caveat: Not all of these constructs are supported and, if they are supported,
they will appear strongly simplified on the Python side, often simply by
using "Any". But at least some of the constructs will be parsed, now.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.