mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
16 lines
505 B
TypeScript
16 lines
505 B
TypeScript
/**
|
|
* Copyright IBM Corp. 2016, 2025
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import type FormField from './field';
|
|
|
|
// very simple util class that accepts a key and an array of form fields
|
|
// returns an object in the expected shape for use in the formFieldsGroup array of forms
|
|
export default class FormFieldGroup {
|
|
[key: string]: FormField[]; // Add an index signature to allow dynamic property assignment
|
|
|
|
constructor(groupName: string, fields: FormField[]) {
|
|
this[groupName] = fields;
|
|
}
|
|
}
|