diff --git a/ts/editor/index.ts b/ts/editor/index.ts index 4a42373b0..2e726d751 100644 --- a/ts/editor/index.ts +++ b/ts/editor/index.ts @@ -551,12 +551,12 @@ function adjustFieldAmount(amount: number): void { } } -function getEditorField(n: number): EditorField | null { +export function getEditorField(n: number): EditorField | null { const fields = document.getElementById("fields").children; return (fields[n] as EditorField) ?? null; } -function forEditorField( +export function forEditorField( values: T[], func: (field: EditorField, value: T) => void ): void {