File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ type AnnotationTypes = { [type: string]: string[] };
4242/**
4343 * Returns a method to create the dynamic submenu for showing annotations.
4444 *
45- * @param {SelectableInfo } box The info box in which to post annotation info.
45+ * @param {() => void } box The info box in which to post annotation info.
4646 * @param {AnnotationTypes } types The legitimate annotation types.
4747 * @param {[string, string][] } cache We cache annotations of a math item, so we
4848 * only have to compute them once for the two annotation menus.
@@ -67,7 +67,7 @@ export function showAnnotations(
6767 * @returns {DynamicSubmenu } Method generating
6868 * the copy annotations submenu.
6969 */
70- export function copyAnnotations ( cache : [ string , string ] [ ] ) {
70+ export function copyAnnotations ( cache : [ string , string ] [ ] ) : DynamicSubmenu {
7171 return ( menu : MJContextMenu , sub : Submenu , callback : SubmenuCallback ) => {
7272 const annotations = cache . slice ( ) ;
7373 cache . length = 0 ;
You can’t perform that action at this time.
0 commit comments