Work around for the time being is adding the below to the head of the file.
// @ts-nocheck
Keen for a solution on this.