I am trying to get the PLATFORM_ID on my super class but I'd rather not have to pass it from all classes extending it. I tried making it optional but it just came back as undefined.
This is in my base class
constructor(
public bucketType: 'quote' | 'list' | 'quote_cart' | 'cart',
public http: HttpClient,
public gaService: GaService,
public gtmService: GtmDataLayerService,
@Inject(PLATFORM_ID) private platformId?: string
) {