Ts2python

Latest version: v0.7.5

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

Scan your dependencies

Page 1 of 2

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.

0.6.9

-------------
- read (but ignore) TypeScript imports
- add alternative ways to render anonymous interfaces as TypedDicts:
Apart from "local" (default), now "functional" and "type" can
be selected. "type" is still experimental

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.