Skip to content

Commit

Permalink
chore: update test model (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
cromoteca authored and taefi committed Sep 27, 2023
1 parent 66583a3 commit 8e9a328
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { _getPropertyModel as _getPropertyModel_1, StringModel as StringModel_1 } from "@hilla/form";
import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from "@hilla/form";
import type AddEvent_1 from "./AddEvent.js";
import BaseEventModel_1 from "./BaseEventModel.js";
class AddEventModel<T extends AddEvent_1 = AddEvent_1> extends BaseEventModel_1<T> {
declare static createEmptyValue: () => AddEvent_1;
static override createEmptyValue = makeObjectEmptyValueCreator_1(AddEventModel);
get item(): StringModel_1 {
return this[_getPropertyModel_1]("item", StringModel_1, [true]) as StringModel_1;
return this[_getPropertyModel_1]("item", (parent, key) => new StringModel_1(parent, key, true));
}
}
export default AddEventModel;

0 comments on commit 8e9a328

Please sign in to comment.