Follow-up from "Resolve "Method validateThing(..) passing wrong argument to validate(..)""
The following discussion from !6 (merged) should be addressed:
@krlwlfrt started a discussion: (+6 comments)
Please note, that only "things" from StAppsCore have the
typeattribute.
Hm, actually what we could use here is simple type check if fieldtypeexists:
public validateThing<T extends {type: string}>(instance: T): ValidatorResult {
EDIT:
It just makes no sense to keep up the deprecated method. This issue and the upcoming Merge Request will delete the deprecated method.
Edited by Michel Jonathan Schmitz