Skip to content

Commit 67e4f62

Browse files
Justin WilkersonJustin Wilkerson
Justin Wilkerson
authored and
Justin Wilkerson
committed
Updated README.
1 parent 4925b46 commit 67e4f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ This hooks provides all of the method and properties provided by the Plugin API.
8585
| Name | Description |
8686
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8787
| **code** | `string` <br /><br /> The current code in the Monaco editor. This value updates on change to the Monaco editor with optional debouncing. Alias for `sandbox.getText()` |
88-
| **setCode** | `(code: string, options: {format: "prettier" | "monaco"}) => void` <br /><br /> Set the code in the Monaco editor with optional formatting with Prettier or Monaco. Alias for `sandbox.setText()` |
88+
| **setCode** | `(code: string, options: {format: "prettier" \| "monaco"}) => void` <br /><br /> Set the code in the Monaco editor with optional formatting with Prettier or Monaco. Alias for `sandbox.setText()` |
8989
| **formatCode** | `() => void` <br /><br /> Format the code in the Monaco editor. Alias for `sandbox.editor.getAction("editor.action.formatDocument").run()` |
9090
| **prettier** | `prettier(config?: Options) => string` <br /><br /> Format the code in the Monaco editor with Prettier. Accepts a Prettier config object.
9191
| **markers** | `(IMarker & {key: string})[]` <br /><br /> Alias for `sandbox.monaco.editor.getModelMarkers({})` with added unique `key` property. Kept in sync via `sandbox.editor.onDidChangeModelDecorations`. |

0 commit comments

Comments
 (0)