Generating the getter, setter methods for an attribute after which you can passing these as argument to property functionality This is apparently similar to this challenge: Phony "Property does not exist on sort 'never ever'" when modifying value inside callback with strictNullChecks, which happens to be shut as a duplicate https://conscientgurugram.in/