
5/22/2025 · Frédéric Caplette
What this post added
This post details the technical process of using GitLab Duo Workflow to refactor a JavaScript file (`workflow.js`) to TypeScript (`workflow.ts`). It outlines the AI's analysis of the codebase, identification of typing needs (store state, workflow objects, pagination, checkpoints, GraphQL responses), and the creation of a multi-step plan. The execution involved creating interfaces, adding type annotations to store state, getters, and actions, and updating imports. The post highlights Duo Workflow's task-oriented programming, contextual codebase understanding, and step-by-step execution with visibility as key advancements.