Skip to content

Commit

Permalink
Merge pull request #16 from junyiacademy/feat/export-khan-math
Browse files Browse the repository at this point in the history
Feat: export KhanMath from khan perseus
  • Loading branch information
Kim716 authored Apr 1, 2024
2 parents af59604 + 49a1840 commit dfaffda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {init, Widgets, Renderer, Dependencies} from "./perseus/src";
import KhanUtils from "./perseus/src/util";
import KhanAnswerTypesUtils from "./perseus/src/util/answer-types";
import GraphUtils from "./perseus/src/util/graphie";
import KhanMath from "./perseus/src/util/math";

export interface TexOptions {
functions?: string[];
Expand All @@ -18,6 +19,7 @@ export interface PerseusCore {
GraphUtils: typeof GraphUtils;
KhanUtils: typeof KhanUtils;
KhanAnswerTypesUtils: typeof KhanAnswerTypesUtils;
KhanMath: typeof KhanMath;
parseTex: (
tex: string,
options?: TexOptions,
Expand All @@ -44,6 +46,7 @@ export {
Dependencies,
KhanUtils,
KhanAnswerTypesUtils,
KhanMath,
};

export type {WidgetExports} from "./perseus/src";
2 changes: 1 addition & 1 deletion packages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junyiacademy/perseus-core",
"version": "1.0.31",
"version": "1.0.32",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
Expand Down

0 comments on commit dfaffda

Please sign in to comment.