Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/btw/btw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function BtwSideQuestion(t0) {
context,
onDone
} = t0;
const [response, setResponse] = useState(null);
const [error, setError] = useState(null);
const [response, setResponse] = useState<string | null>(null);
const [error, setError] = useState<string | null>(null);
const [frame, setFrame] = useState(0);
const scrollRef = useRef(null);
const {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/rate-limit-options/rate-limit-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function RateLimitOptionsMenu(t0) {
onDone,
context
} = t0;
const [subCommandJSX, setSubCommandJSX] = useState(null);
const [subCommandJSX, setSubCommandJSX] = useState<React.ReactNode | null>(null);
const claudeAiLimits = useClaudeAiLimits();
let t1;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/tag/tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function ToggleTagAndClose(t0) {
onDone
} = t0;
const [showConfirm, setShowConfirm] = React.useState(false);
const [sessionId, setSessionId] = React.useState(null);
const [sessionId, setSessionId] = React.useState<string | null>(null);
let t1;
if ($[0] !== tagName) {
t1 = recursivelySanitizeUnicode(tagName).trim();
Expand Down
6 changes: 3 additions & 3 deletions src/commands/thinkback/thinkback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ function ThinkbackFlow(t0) {
onDone
} = t0;
const [installComplete, setInstallComplete] = useState(false);
const [installError, setInstallError] = useState(null);
const [skillDir, setSkillDir] = useState(null);
const [hasGenerated, setHasGenerated] = useState(null);
const [installError, setInstallError] = useState<string | null>(null);
const [skillDir, setSkillDir] = useState<string | null>(null);
const [hasGenerated, setHasGenerated] = useState<boolean | null>(null);
let t1;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
t1 = function handleReady() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/AutoUpdaterWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function AutoUpdaterWrapper(t0) {
showSuccessMessage,
verbose
} = t0;
const [useNativeInstaller, setUseNativeInstaller] = React.useState(null);
const [isPackageManager, setIsPackageManager] = React.useState(null);
const [useNativeInstaller, setUseNativeInstaller] = React.useState<boolean | null>(null);
const [isPackageManager, setIsPackageManager] = React.useState<boolean | null>(null);
let t1;
let t2;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/DesktopHandoff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function DesktopHandoff(t0) {
onDone
} = t0;
const [state, setState] = useState("checking");
const [error, setError] = useState(null);
const [error, setError] = useState<string | null>(null);
const [downloadMessage, setDownloadMessage] = useState("");
let t1;
if ($[0] !== error || $[1] !== onDone || $[2] !== state) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/PromptInput/PromptInputFooterLeftSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Props = {
function ProactiveCountdown() {
const $ = _c(7);
const nextTickAt = useSyncExternalStore(proactiveModule?.subscribeToProactiveChanges ?? NO_OP_SUBSCRIBE, proactiveModule?.getNextTickAt ?? NULL, NULL);
const [remainingSeconds, setRemainingSeconds] = useState(null);
const [remainingSeconds, setRemainingSeconds] = useState<number | null>(null);
let t0;
let t1;
if ($[0] !== nextTickAt) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/TeleportError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function TeleportError(t0) {
errorsToIgnore: t1
} = t0;
const errorsToIgnore = t1 === undefined ? EMPTY_ERRORS_TO_IGNORE : t1;
const [currentError, setCurrentError] = useState(null);
const [currentError, setCurrentError] = useState<TeleportLocalErrorType | null>(null);
const [isLoggingIn, setIsLoggingIn] = useState(false);
let t2;
if ($[0] !== errorsToIgnore || $[1] !== onComplete) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/TeleportRepoMismatchDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function TeleportRepoMismatchDialog(t0) {
onCancel
} = t0;
const [availablePaths, setAvailablePaths] = useState(initialPaths);
const [errorMessage, setErrorMessage] = useState(null);
const [errorMessage, setErrorMessage] = useState<string | null>(null);
const [validating, setValidating] = useState(false);
let t1;
if ($[0] !== availablePaths || $[1] !== onCancel || $[2] !== onSelectPath || $[3] !== targetRepo) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ThinkingToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function ThinkingToggle(t0) {
isMidConversation
} = t0;
const exitState = useExitOnCtrlCDWithKeybindings();
const [confirmationPending, setConfirmationPending] = useState(null);
const [confirmationPending, setConfirmationPending] = useState<boolean | null>(null);
let t1;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
t1 = [{
Expand Down
2 changes: 1 addition & 1 deletion src/components/mcp/MCPReconnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function MCPReconnect(t0) {
const store = useAppStateStore();
const reconnectMcpServer = useMcpReconnect();
const [isReconnecting, setIsReconnecting] = useState(true);
const [error, setError] = useState(null);
const [error, setError] = useState<string | null>(null);
let t1;
let t2;
if ($[0] !== onComplete || $[1] !== reconnectMcpServer || $[2] !== serverName || $[3] !== store) {
Expand Down