Skip to content
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

How to handle UnitTypes #4

Open
teamplayer3 opened this issue Oct 16, 2022 · 0 comments
Open

How to handle UnitTypes #4

teamplayer3 opened this issue Oct 16, 2022 · 0 comments

Comments

@teamplayer3
Copy link
Owner

UnitType in rust:

struct T;

Problem with typescript: microsoft/TypeScript#47486
-> empty interfaces match to any type -> mostly not allowed with eslint

Not working ts decl:

export type T = {}
declare function test_func(t: T): void

test_func([23]) // no error
@teamplayer3 teamplayer3 changed the title What to do with UnitTypes How to handle UnitTypes Nov 11, 2024
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

No branches or pull requests

1 participant