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

Abandon use of Luau's typeof #25

Open
R-unic opened this issue Jan 5, 2025 · 0 comments
Open

Abandon use of Luau's typeof #25

R-unic opened this issue Jan 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@R-unic
Copy link
Collaborator

R-unic commented Jan 5, 2025

Currently a class' type is defined with just type ClassName = typeof(ClassName). This is turning out to have more issues than anticipated, so instead we will track every field/method, and emit an interface type for the class.

If we have

class Abc<T>
{
  public T Foo { get; }
}

Then the type emitted should be

type Abc<T> = {
  read Foo: T;
}
@R-unic R-unic added the enhancement New feature or request label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant