Nothing Special   »   [go: up one dir, main page]

Skip to content

[Monaco editor] Missing auto-complete #3271

Answered by 4ian
Bouh asked this question in Archive
Discussion options

You must be logged in to vote

Use a /** @type {xxx} */ to cast the object into the type you're using.
Note that in the future we could:

  • Support TypeScript somehow, in which case you would do it using const myObject = ... as xxx
  • Or pass the array objects with the proper type.

See the Platformer using JavaScript blocks example:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bouh
Comment options

Bouh Nov 21, 2021
Collaborator Author

Answer selected by Bouh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants