Skip to content

Commit

Permalink
katex.d.ts: Genericize TrustContext for now
Browse files Browse the repository at this point in the history
src/katex.d.ts:145:36 - error TS2304: Cannot find name 'TrustContext'.
145     trust?: boolean | ( ( context: TrustContext ) => boolean ) | undefined;
  • Loading branch information
tony committed Mar 16, 2024
1 parent 8abb816 commit c990a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/katex.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export interface KatexOptions {
*
* @default false
*/
trust?: boolean | ( ( context: TrustContext ) => boolean ) | undefined;
trust?: boolean | ( ( context: object ) => boolean ) | undefined;

/**
* Place KaTeX code in the global group.
Expand Down

0 comments on commit c990a51

Please sign in to comment.