refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-28 08:57:42 +08:00
parent 974432a0af
commit e26b6f0fcc
28 changed files with 121 additions and 120 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export default function useDraft({ context = "", id = "" }) {
const getUpdateDraft = (type = "mixed") => {
const update = type == "mixed" ? updateDraftMixedText : updateDraftMarkdown;
return (value) => {
return (value: string) => {
dispatch(update({ key: _key, value }));
};
};