docs: fix typos in source code and documentation (#13577)

This commit is contained in:
fancivez
2025-11-21 22:59:42 +08:00
committed by GitHub
parent 8d082a904d
commit 0f0b463a2f
13 changed files with 14 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ export const createMockCommandContext = (
const targetValue = output[key];
if (
// We only want to recursivlty merge plain objects
// We only want to recursively merge plain objects
Object.prototype.toString.call(sourceValue) === '[object Object]' &&
Object.prototype.toString.call(targetValue) === '[object Object]'
) {

View File

@@ -185,7 +185,7 @@ export const DebugProfiler = () => {
return;
}
// Only update the UX infrequently as updating the UX itself will cause
// frames to run so can disturb what we are measuing.
// frames to run so can disturb what we are measuring.
const forceRefreshInterval = setInterval(() => {
setForceRefresh((f) => f + 1);
profiler.reportAction();

View File

@@ -708,7 +708,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
// newline that was part of the paste.
// This has the added benefit that in the worst case at least users
// get some feedback that their keypress was handled rather than
// wondering why it was completey ignored.
// wondering why it was completely ignored.
buffer.newline();
return;
}

View File

@@ -293,7 +293,7 @@ describe('useSlashCompletion', () => {
const hook = renderHook(() =>
useTestHarnessForSlashCompletion(
true,
'/usag',
'/usage',
slashCommands,
mockCommandContext,
),

View File

@@ -19,7 +19,7 @@ import { type ReactNode } from 'react';
export type { ThoughtSummary };
export enum AuthState {
// Attemtping to authenticate or re-authenticate
// Attempting to authenticate or re-authenticate
Unauthenticated = 'unauthenticated',
// Auth dialog is open for user to select auth method
Updating = 'updating',