@khanacademy/perseus-core 24.1.0 → 24.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.item-splitting.js +1 -1
- package/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +158 -10
- package/dist/index.item-splitting.js +1 -1
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/general-purpose-parsers/test-helpers.d.ts +7 -7
- package/dist/parse-perseus-json/perseus-parsers/numeric-input-widget.d.ts +0 -4
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ErrorTrackingParseContext } from "../error-tracking-parse-context";
|
|
2
|
-
import type { Mismatch
|
|
2
|
+
import type { Mismatch } from "../parser-types";
|
|
3
3
|
import type { Failure } from "../result";
|
|
4
4
|
export declare function ctx(): ErrorTrackingParseContext;
|
|
5
5
|
export declare const anyFailure: Failure<any>;
|
|
6
6
|
export declare const anySuccess: import("../result").Success<any>;
|
|
7
7
|
export declare function parseFailureWith(expected: Partial<Mismatch>): Failure<Mismatch[]>;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Summons a value of type T out of thin air!
|
|
10
|
+
*
|
|
11
|
+
* (Terms and conditions apply. Value will not actually be returned.
|
|
12
|
+
* For use in typetests only.)
|
|
13
|
+
*/
|
|
9
14
|
export declare function summon<T>(): T;
|
|
10
|
-
export type RecursiveRequired<T> = T extends object ? RecursiveRequiredObject<T> : T;
|
|
11
|
-
type RecursiveRequiredObject<T extends object> = {
|
|
12
|
-
[K in keyof T]-?: RecursiveRequired<T[K]>;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -14,8 +14,4 @@ export declare const parseNumericInputWidget: import("../parser-types").Parser<i
|
|
|
14
14
|
coefficient: boolean;
|
|
15
15
|
rightAlign: boolean | undefined;
|
|
16
16
|
static: boolean;
|
|
17
|
-
answerForms: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
18
|
-
name: "integer" | "mixed" | "improper" | "proper" | "decimal" | "percent" | "pi";
|
|
19
|
-
simplify: "required" | "enforced" | "optional";
|
|
20
|
-
}>[] | undefined;
|
|
21
17
|
}>>>;
|