Using a model as a Type in my typescript
Posted: Wed Oct 14, 2020 2:20 am
I've defined a number of models and they seem to be used like a Type when the code is being tested.
Can I use them as a Type in my own custom Typescript? I tried using syntax like "function (latlon: LatLon): LogEntry {} "
where LatLon and LogEntry are models, but this did not work