-
Hi, How do we add methods in auto-complete in a JS event? For example, we can't find getColor of a Monaco editor is limited to |
Beta Was this translation helpful? Give feedback.
Answered by
4ian
Nov 21, 2021
Replies: 1 comment 1 reply
-
Use a
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Bouh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use a
/** @type {xxx} */
to cast the object into the type you're using.Note that in the future we could:
const myObject = ... as xxx
objects
with the proper type.See the Platformer using JavaScript blocks example: