Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
JBR90 committed Dec 17, 2024
1 parent c4a5ac5 commit ebe31a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/nextjs/src/hooks/useReactScan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import { aiLogger } from "@oakai/logger";

const log = aiLogger("testing");

declare global {
interface Window {
NEXT_PUBLIC_ENABLE_RENDER_SCAN?: string;
}
}

function getWindowPropertyName<T>(component: React.ComponentType<T>): string {
return `reactScan${component.displayName ?? component.name ?? "UnknownComponent"}`;
}
Expand Down
1 change: 1 addition & 0 deletions apps/nextjs/tests-e2e/tests/chat-performance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { isFinished } from "./aila-chat/helpers";
declare global {
interface Window {
reactScanLessonPlanDisplay: { renderCount: number };
NEXT_PUBLIC_ENABLE_RENDER_SCAN?: string;
}
}

Expand Down

0 comments on commit ebe31a9

Please sign in to comment.