mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
add docstring to forEditorField
This commit is contained in:
parent
0e4bcbd69b
commit
ddcb2adf71
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ export function getEditorField(n: number): EditorField | null {
|
|||
return (fields[n] as EditorField) ?? null;
|
||||
}
|
||||
|
||||
/// forEachEditorFieldAndProvidedValue:
|
||||
/// Values should be a list with the same length as the
|
||||
/// number of fields. Func will be called with each field and
|
||||
/// value in turn.
|
||||
export function forEditorField<T>(
|
||||
values: T[],
|
||||
func: (field: EditorField, value: T) => void
|
||||
|
|
Loading…
Reference in a new issue