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

Warning from use of experimental decorators #69

Closed
AustinBaggio opened this issue May 31, 2022 · 2 comments
Closed

Warning from use of experimental decorators #69

AustinBaggio opened this issue May 31, 2022 · 2 comments
Assignees

Comments

@AustinBaggio
Copy link
Contributor

AustinBaggio commented May 31, 2022

Experimental decorators might scare of a new to NEAR, or more junior developer. Not sure what the alternatives are to remove or suppress this warning from the SDK so the developer doesn't see it.

(method) StatusMessage.set_greeting(message: any): void Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.ts(1219) No quick fixes available

Using VSCode with JS linter

@ailisp
Copy link
Member

ailisp commented Jun 6, 2022

Unfortunately there is no good way to fix the status of "experimental" because we want a JS SDK, not a TS one, and in JS world decorators are still in "Experimental" stage. We may ship a tsconfig or jsconfig in example project / template projects to remove the warning? cc @volovyk-s

@volovyks
Copy link
Collaborator

volovyks commented Jun 6, 2022

I agree that the only way to fix it is to turn it off until this feature is stable.
If it can be done with a config file - let's do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants