Reintroduce type definitions for TypeScript.