调整可编辑描述能够接受的参数的类型。
This commit is contained in:
parent
0b59b0a405
commit
f0dcb75b50
|
@ -5,7 +5,7 @@ import styles from './EditableDescription.module.css';
|
|||
|
||||
type EditableDescriptionProps = {
|
||||
content?: string | null;
|
||||
onChange?: (newContent: string) => void;
|
||||
onChange?: (newContent: string | null) => void;
|
||||
};
|
||||
|
||||
export function EditableDescription({ content, onChange }: EditableDescriptionProps) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user