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

[public-extension-exports] Class methods, properties are allowed to be tagged with @extensions even if class itself is not. #68

Open
ben-polinsky opened this issue May 8, 2024 · 0 comments

Comments

@ben-polinsky
Copy link
Collaborator

With namespaces, we do not allow a member to be exported for extensions without the namespace itself being tagged. However, we do not enforce the same rule for classes.

Example:

export class Foo { // should have error similar to namespace, but no error is present
 /*
 * @extensions
 * @public
 */
 public static bar(){ // no error ok, method is properly tagged
  ...
  }
 }
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