chore: Improve typings around model methods (#6324)
This commit is contained in:
@@ -8,6 +8,7 @@ import { toast } from "sonner";
|
||||
import styled, { css } from "styled-components";
|
||||
import breakpoint from "styled-components-breakpoint";
|
||||
import { s } from "@shared/styles";
|
||||
import { JSONObject } from "@shared/types";
|
||||
import { dateToRelative } from "@shared/utils/date";
|
||||
import { Minute } from "@shared/utils/time";
|
||||
import Comment from "~/models/Comment";
|
||||
@@ -95,7 +96,7 @@ function CommentThreadItem({
|
||||
const [isEditing, setEditing, setReadOnly] = useBoolean();
|
||||
const formRef = React.useRef<HTMLFormElement>(null);
|
||||
|
||||
const handleChange = (value: (asString: boolean) => object) => {
|
||||
const handleChange = (value: (asString: boolean) => JSONObject) => {
|
||||
setData(value(false));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user