Skip to content

Conversation

TheLartians
Copy link
Owner

@TheLartians TheLartians commented Jan 21, 2025

Previously, the code was compiled without strict type-checking, meaning some undefined and null types could be lost in unions. Optimally compiler options would be taken from the tsconfig.json but I haven't found a reliable way to include it yet.

Example

export type T = number | undefined`

Before

T = float

After, using the --strict option

from typing_extensions import Union

T = Union[None,float]

@TheLartians TheLartians merged commit 76cf1f5 into main Jan 21, 2025
1 check passed
@TheLartians TheLartians deleted the lars/support-compiler-options branch January 21, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant