Add type definitions for TypeScript.