Skip to content

Commit 9285854

Browse files
committed
feat: rename EditorInputProps to EditorProps for consistency and clarity
1 parent 1e33812 commit 9285854

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/editor/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface EditorTokenHighlights {
5454
[tokenName: string]: (props: EditorRendererProps) => React.ReactNode
5555
}
5656

57-
export interface EditorInputProps extends Omit<Component<HTMLDivElement>, 'onChange' | 'defaultValue' | 'value'>, ValidationProps<any> {
57+
export interface EditorProps extends Omit<Component<HTMLDivElement>, 'onChange' | 'defaultValue' | 'value'>, ValidationProps<any> {
5858
language?: 'json' | StreamLanguage<unknown>
5959
tokenizer?: EditorTokenizer
6060
tokenHighlights?: EditorTokenHighlights
@@ -105,7 +105,7 @@ const isReactNode = (value: any): value is React.ReactNode => {
105105
return isValidElement(value) || typeof value === 'string' || typeof value === 'number' || Array.isArray(value);
106106
}
107107

108-
export const Editor: React.FC<EditorInputProps> = (props) => {
108+
export const Editor: React.FC<EditorProps> = (props) => {
109109
const {
110110
language,
111111
tokenizer,

0 commit comments

Comments
 (0)