Skip to content

Commit

Permalink
[benc/grapher] Add magic comment to fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
benchristel committed Feb 7, 2025
1 parent 134a68f commit a2a0b69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/perseus/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import type {PerseusStrings} from "./strings";
import type {SizeClass} from "./util/sizing-utils";
import type {WidgetPromptJSON} from "./widget-ai-utils/prompt-types";
import type {KeypadAPI} from "@khanacademy/math-input";
// MAGIC: Removal of this comment may cause `tsc --build` to output a syntax
// error in packages/perseus/dist/server-item-renderer.d.ts and then fail. This
// appears to be a bug introduced in TS 5.6. If you are curious about this, try
// deleting this comment and running:
// rm -rf packages/*/{dist,tsconfig-build.tsbuildinfo} && yarn build:types
// If that succeeds, maybe the bug has been fixed.
import type {
getGrapherPublicWidgetOptions,
getInteractiveGraphPublicWidgetOptions,
Expand Down

0 comments on commit a2a0b69

Please sign in to comment.