I am trying to explain to myself (in the future lol) how exactly a function should be implemented, It would be nice if I could get the UI to tell me what EXACTLY I need to return instead of what I shouldn't return. Given:
type ruleFunction = (this: Rule, dev: Developer) => 'submitResultsFunction'
const foo: ruleFunction = (dev: Developer) => {}
currently shows: "Type '(this: Rule, dev: Developer => void' is not assignable to type 'ruleFunction'
I would like to replace that text with 'function must return 'submitResultsFunction'