I'm looking at the transpiled code and I noticed functions correctly get assertions for arguments and return types, but there doesn't seem to be a way to inspect these on runtime.
is this a missing feature?
eg. tcomb allows defining function types with
// add takes two `t.Number`s and returns a `t.Number`
const add = t.func([t.Number, t.Number], t.Number)
.of((x, y) => x + y);
this would allow us to use the meta object to inspect what are the expected arguments and return type of functions.
I'm looking at the transpiled code and I noticed functions correctly get assertions for arguments and return types, but there doesn't seem to be a way to inspect these on runtime. is this a missing feature?
eg. tcomb allows defining function types with
this would allow us to use the
meta
object to inspect what are the expected arguments and return type of functions.