Closed madenney closed 6 years ago
This is not valid JavaScript
// v---- a type?
const foo = ( userGroup: typeCheck ) => {
// do stuff
}
I guess you are using babel-plugin-tcomb.
If that's the case, try using tcomb.interface
instead of tcomb.struct
Version
3.2.25
throws this error:
It works if I do the following:
I'm really not sure what I'm doing wrong here.