You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Monaco editor doesn't support TS 3.7, so pasting in an assertion function reports errors even with TS 3.7 selected under options - https://ts-ast-viewer.com/#code.... The parse result is correctly displayed in the middle & right panes, but errors show up in the left pane.
exportfunctionpredicate(arg: any): asserts arg is string{if(typeofarg!=='string'){thrownewError('Was not a string')}}
The text was updated successfully, but these errors were encountered:
I think what might be best here is to create a fork of https://github.com/microsoft/monaco-typescript that could reuse the compiler objects from the rest of the site. Then it could maybe be swapped in for the current typescript plugin.
Hello ! I ran into this when analyzing the AST for import attributes.
Can the editor be updated and a small hint a the bottom that give the TS version of the editor?
The current Monaco editor doesn't support TS 3.7, so pasting in an assertion function reports errors even with TS 3.7 selected under options - https://ts-ast-viewer.com/#code.... The parse result is correctly displayed in the middle & right panes, but errors show up in the left pane.
The text was updated successfully, but these errors were encountered: