Skip to content

API reference > @kontsedal/olas-core > ItemInitial

ItemInitial type ​

What seeds one field-array item: the field's T, or a DeepPartial of the form's value. add and insert pass it to the item factory.

Signature:

typescript
type ItemInitial<I> = I extends Field<infer T> ? T : I extends Form<infer S> ? DeepPartial<FormValue<S>> : never;

References: Field, Form, DeepPartial, FormValue

Released under the MIT License.