Page MenuHomeSealhub

Fix typechecking of .set on Enum field type
Open, NormalPublic2 Points

Description

Currently when you have an enum field like this:

export default class Items extends Collection {
	fields = {
		type: new FieldTypes.Enum(["A", "B"]),
	};
}

then when you write item.set("type", "C"), Typescript doesn't complain — but it should

Details

Tested by
kuba-orlik
Coded by
ziomek
Reviewed by
JustLinuxUser
Action required from
ziomek

Revisions and Commits

Event Timeline

ziomek updated Coded by, added: ziomek.
ziomek moved this task from To do to Doing on the Kanban board.
ziomek added a revision: Restricted Differential Revision.Feb 26 2026, 23:21
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: FilipI; removed: ziomek.
jenkins-user added a subscriber: ziomek.
jenkins-user moved this task from Review to Doing on the Kanban board.
jenkins-user updated Reviewed by, added: JustLinuxUser.
jenkins-user updated Action required from, added: ziomek; removed: FilipI.
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: JustLinuxUser; removed: ziomek.
jenkins-user moved this task from Review to Doing on the Kanban board.
jenkins-user updated Action required from, added: ziomek; removed: JustLinuxUser.
jenkins-user added a subscriber: JustLinuxUser.
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: JustLinuxUser; removed: ziomek.
jenkins-user moved this task from Review to Ready for testing on the Kanban board.
jenkins-user updated Action required from, added: AmeliaB, • Koossa, karolwojtowicz87, brtkuu, prostyfranek, zbartosz, radoptak; removed: JustLinuxUser.
jenkins-user moved this task from Ready for testing to Doing on the Kanban board.
jenkins-user updated Tested by, added: kuba-orlik.
jenkins-user updated Action required from, added: ziomek; removed: AmeliaB, • Koossa, karolwojtowicz87, brtkuu, prostyfranek, zbartosz, radoptak.
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: JustLinuxUser; removed: ziomek.
jenkins-user moved this task from Review to Doing on the Kanban board.
jenkins-user updated Action required from, added: ziomek; removed: JustLinuxUser.