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
Copy file name to clipboardExpand all lines: packages/browser-repl/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,8 @@ Shell is a React component with the following properties:
34
34
-`onOutputChanged?: (output: ShellOutputEntry[]) => void`: A function called each time the output changes with an array of `ShellOutputEntries`.
35
35
-`onHistoryChanged?: (history: string[]) => void`: A function called each time the history changes with an array of history entries ordered from the most recent to the oldest entry.
36
36
-`onEditorChanged?: (editor: EditorRef | null) => void`: A function called each time the editor ref changes. Can be used to call editor methods.
37
-
-`onOperationStarted: () => void`: A function called when an operation has begun.
38
-
-`onOperationEnd: () => void`: A function called when an operation has completed (both error and success).
37
+
-`onOperationStarted?: () => void`: A function called when an operation has begun.
38
+
-`onOperationEnd?: () => void`: A function called when an operation has completed (both error and success).
39
39
-`redactInfo?: boolean`: If set, the shell will omit or redact entries containing sensitive info from history. Defaults to `false`.
40
40
-`maxOutputLength?: number`: The maxiumum number of lines to keep in the output. Defaults to `1000`.
41
41
-`maxHistoryLength?: number`: The maxiumum number of lines to keep in the history. Defaults to `1000`.
0 commit comments