This project is archived. Its data is read-only.

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 type attribute.

Hm, actually what we could use here is simple type check if field type exists:

  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 Feb 13, 2019 by Michel Jonathan Schmitz
Assignee Loading
Time tracking Loading