Request for a proper handling, when a type is a built in one, or from a non transformed module, where we have no RTTI.
Returning any and passing the validation is no good from a security perspective ;)
import { reflect } from 'typescript-rtti';
class A {
foo() { return window }
}
console.log(reflect(A).getMethod('foo').returnType.toString()); // Got: "any", expected: an Error, returnType is undefined / indicate that type could not be followed
console.log(reflect(A).getMethod('foo').returnType.matchesValue("abc")); // Got: true, expected: an Error, that the type could not be followed
Request for a proper handling, when a type is a built in one, or from a non transformed module, where we have no RTTI.
Returning
anyand passing the validation is no good from a security perspective ;)