Skip to content

Commit 3e5f6c3

Browse files
committed
remove redundant undefined type and copy ref type to types
1 parent 5147237 commit 3e5f6c3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/repl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface ReplProps {
4141
current: string;
4242
setCurrent: (tabId: string) => void;
4343
onEditorReady?: (editor: mEditor.IStandaloneCodeEditor) => unknown;
44-
ref?: HTMLDivElement | ((el: HTMLDivElement) => void) | undefined;
44+
ref?: HTMLDivElement | ((el: HTMLDivElement) => void);
4545
}
4646

4747
export const Repl: Component<ReplProps> = (props) => {

types/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export declare const Repl: Component<{
1414
setCurrent: (x: string) => void;
1515
version?: string;
1616
onEditorReady?: (editor: mEditor.IStandaloneCodeEditor) => unknown;
17+
ref?: HTMLDivElement | ((el: HTMLDivElement) => void);
1718
}>;
1819

1920
export interface Tab {

0 commit comments

Comments
 (0)