INNER CODE UNIT · TypeScript
remotionVercelDeployment
remotion-dev/remotion · .pi/extensions/vercel-deployment/index.ts:269
export default function remotionVercelDeployment(pi: ExtensionAPI) {
let generation = 0;
let activeContext: ExtensionContext | null = null;
let timer: ReturnType<typeof setInterval> | undefined;
let refreshRunning: Promise<void> | null = null;
let refreshQueued = false;
const stopTimer = () => {
if (timer) {
clearInterval(timer);
timer = undefined;
}
};
const requestRefresh = (ctx: ExtensionContext) => {
if (ctx.mode !== 'tui' || activeContext !== ctx) {
return;
}