more TypeScript API specification