File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,13 @@ TypeScript2Python supports many of TypeScripts type constructs, including:
92
92
- Optional properties ` { optional ?: number }` , that get transpiled to ` NotRequired [... ]` attributes
93
93
- Docstrings ` /** this is very useful */ `
94
94
95
- ## Transpilation options
95
+ ## Transpiler options
96
96
97
97
### Nullable optionals
98
98
99
99
In TypeScript objects, optional values can also be set to ` undefined ` . By default we assume the according Python
100
- type to be non-nullable, but a more closely matching behavior can be achieved using the flag ` -- nullable - optionals ` .
100
+ type to be non-nullable, but a more closely matching behavior can be achieved using the flag ` -- nullable - optionals ` .
101
+ This will result in optional entries beeing transpiled as ` NotRequired [Optional [T ]]` instead of ` NotRequired [T ]` .
101
102
102
103
## Limitations
103
104
You can’t perform that action at this time.
0 commit comments