diff --git a/packages/ts/generator-typescript-plugin-subtypes/test/push-type/fixtures/AddEventModel.snap.ts b/packages/ts/generator-typescript-plugin-subtypes/test/push-type/fixtures/AddEventModel.snap.ts index 37e7f70d33..998fc4eaec 100644 --- a/packages/ts/generator-typescript-plugin-subtypes/test/push-type/fixtures/AddEventModel.snap.ts +++ b/packages/ts/generator-typescript-plugin-subtypes/test/push-type/fixtures/AddEventModel.snap.ts @@ -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 extends BaseEventModel_1 { - 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;