-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...ges/ts/generator-typescript-plugin-subtypes/test/push-type/fixtures/AddEventModel.snap.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |