I'm reading the loopback 4 documentation. I also already read typescript tutorials. But I don't get this syntax:
module.exports = <ModelCrudRestApiConfig>{
model: Product,
pattern: 'CrudRest', // make sure to use this pattern
dataSource: 'db',
basePath: '/products',
};
What does this notation mean:
<Stuff>{ a: 1, c:2 }
Also this
const ProductController = defineCrudRestController<
Product,
typeof Product.prototype.id,
'id'
>(Product, {basePath: '/products'});
From here: https://loopback.io/doc/en/lb4/Creating-crud-rest-apis.html
Also, is it from loopback or from typescript?
Thanks,