diff --git a/src/latex.ts b/src/latex.ts index f1e948a..8f4cd50 100644 --- a/src/latex.ts +++ b/src/latex.ts @@ -346,6 +346,9 @@ const mapNode = (n: latex.Node, runs: MathRun[]): MathRun[] | false => { return []; }; +/** + * @internal + */ export const parseLatex = (value: string): MathRun[][] => { const parsed = parseMath(value); const paragraphs: MathRun[][] = [[]]; diff --git a/src/utils.ts b/src/utils.ts index 91578c8..7bdda14 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,7 +1,13 @@ +/** + * @internal + */ export const unreachable = (_: never): never => { throw new Error("unreachable"); }; +/** + * @internal + */ export function invariant(cond: any, message: string): asserts cond { if (!cond) throw new Error(message); } diff --git a/tsconfig.json b/tsconfig.json index 2d34d4a..5129176 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,8 +20,9 @@ "noImplicitOverride": true, "noFallthroughCasesInSwitch": true, "allowUnreachableCode": false, - "allowUnusedLabels": false + "allowUnusedLabels": false, // "exactOptionalPropertyTypes": true, + "stripInternal": true }, "include": ["src"], "exclude": ["node_modules"]