No explicit any

This commit is contained in:
2025-12-17 20:10:00 +00:00
parent 18cf0cc140
commit 89001f53da
18 changed files with 257 additions and 205 deletions

View File

@@ -10,13 +10,13 @@ export const parseDescriptionDefault = (reg: Register, description: string) => {
// Footnote multiline state
let inFootnote = false;
let footnoteBaseIndent = 0;
let footnoteTarget: 'global' | 'access' | null = null;
// let footnoteTarget: 'global' | 'access' | null = null;
let currentFootnote: Note | null = null;
const endFootnoteIfActive = () => {
inFootnote = false;
footnoteBaseIndent = 0;
footnoteTarget = null;
// footnoteTarget = null;
currentFootnote = null;
};
@@ -89,10 +89,10 @@ export const parseDescriptionDefault = (reg: Register, description: string) => {
const note: Note = { ref: noteMatch[1], text: noteMatch[2] };
if (currentAccess) {
accessData.notes.push(note);
footnoteTarget = 'access';
// footnoteTarget = 'access';
} else {
reg.notes.push(note);
footnoteTarget = 'global';
// footnoteTarget = 'global';
}
currentFootnote = note;
inFootnote = true;