Using the guid-typescript package, I wanted to use Guid types in my response model to be more descriptive.
import {Guid} from 'guid-typescript';
export class Product {
id: Guid;
name: string;
}
...
this.http.get<Product[]>(...);
In runtime, however, product.id is a string type, not a Guid type. How can I inform the angular http library on how to handle these types?