Ver Fonte

134164 decide type in useCallback

soumaeda há 2 anos atrás
pai
commit
6816d0318d

+ 1 - 1
packages/editor/src/services/codemirror-editor/use-codemirror-editor/utils/insert-prefix.ts

@@ -6,7 +6,7 @@ export type InsertPrefix = (prefix: string, flag: boolean) => void;
 
 export const useInsertPrefix = (view?: EditorView): InsertPrefix => {
 
-  return useCallback((prefix, isContinuous) => {
+  return useCallback((prefix: string, isContinuous: boolean) => {
     if (view == null) {
       return;
     }