Skip to content

Commit

Permalink
feat: export KhanAnswerTypes from khan perseus
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim716 committed Mar 26, 2024
1 parent 155f131 commit 056a908
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
@@ -1,6 +1,7 @@
import {parse, compare} from "./kas/src";
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";

export interface TexOptions {
Expand All @@ -16,6 +17,7 @@ export interface PerseusCore {
Renderer: typeof Renderer;
GraphUtils: typeof GraphUtils;
KhanUtils: typeof KhanUtils;
KhanAnswerTypesUtils: typeof KhanAnswerTypesUtils;
parseTex: (
tex: string,
options?: TexOptions,
Expand All @@ -41,6 +43,7 @@ export {
GraphUtils,
Dependencies,
KhanUtils,
KhanAnswerTypesUtils,
};

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.29",
"version": "1.0.30",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
Expand Down

0 comments on commit 056a908

Please sign in to comment.