Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update test model #1347

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;