The true TypeScript way.