Files
compiler-explorer/static
Mats Larsen 60217a8e61 Make the TypeScript Pane API easier to work with (#3034)
This is a refactor for core methods of the Pane API. In this patch:

1. Rename initializeDOMRoot to getInitialHTML() - This logic is common for all of the panes. Returning the HTML is more type-safe and makes the method pure.
2. Make createEditor return the monaco editor - Allows us to set the editor in the constructor. Returning the editor is more type-safe and makes the method pure.
3. Rename id parameters to compilerId in onCompileResult, onCompiler and onCompilerClose - It's not easy to tell what these ids were, this makes it easier to understand what we're using here.
4. Type compiler, options and result as unkown in onCompiler, onCompileResult - These parameters don't have types at the moment, so it's safer for implementors to manually override and type as any/whichever type they wish.
5. Add plenty of code documentation to onCompiler and onCompileResult
2021-10-14 15:16:40 +02:00
..
2021-04-01 14:33:41 -05:00
2021-09-03 05:51:05 +02:00
2021-08-28 16:02:35 +02:00
2021-09-03 05:51:05 +02:00
2021-07-27 12:42:07 +02:00
2021-08-26 21:57:07 +02:00
2020-08-04 16:39:02 -04:00
2018-03-19 03:53:15 +01:00
2021-08-27 21:34:47 +02:00
2021-09-03 05:51:05 +02:00