Note that the API is only in versions of TS 1.2 and above