Skip to content

Commit 77cc914

Browse files
authored
Update README.md (#13)
1 parent b9c9033 commit 77cc914

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,13 @@ TypeScript2Python supports many of TypeScripts type constructs, including:
9292
- Optional properties `{ optional?: number }`, that get transpiled to `NotRequired[...]` attributes
9393
- Docstrings `/** this is very useful */`
9494
95-
## Transpilation options
95+
## Transpiler options
9696
9797
### Nullable optionals
9898
9999
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]`.
101102
102103
## Limitations
103104

0 commit comments

Comments
 (0)