TypeScript : Negative content length