@sunzhongmou/math
Version:
Mathematical knowledge context
18 lines (17 loc) • 572 B
TypeScript
import * as DDD from '@sunzhongmou/ddd';
import { Expression } from './expression';
export declare enum QuestionType {
RAW = 0,
FILL = 1
}
export declare class Exercise implements DDD.Entity {
id: string;
rawQuestions: Expression[];
fillQuestions: Expression[];
constructor(rawQuestion: Expression[], fillQuestion: Expression[]);
sameIdentityAs(other: DDD.Entity): boolean;
addQuestion(question: Expression, type: QuestionType): void;
generateRawQuestions(): string[];
generateFillQuestions(): string[];
generate(): string[];
}