Skip to content

add --strict option #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 21, 2025
Merged

add --strict option #19

merged 3 commits into from
Jan 21, 2025

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