Skip to content

Commit

Permalink
Adding missing "overrides" for issue #768
Browse files Browse the repository at this point in the history
  • Loading branch information
jcputney committed Oct 29, 2024
1 parent 3ca504c commit 0a5fa75
Show file tree
Hide file tree
Showing 34 changed files with 57 additions and 56 deletions.
2 changes: 1 addition & 1 deletion dist/aicc.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aicc.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/aicc.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/aicc.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/scorm-again.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/scorm-again.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/scorm12.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/scorm12.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/scorm2004.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/scorm2004.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scorm-again.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scorm-again.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scorm12.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scorm12.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scorm2004.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scorm2004.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/AICC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AICCImpl extends Scorm12Impl {
* @param {boolean} foundFirstIndex
* @return {BaseCMI | null}
*/
getChildElement(
override getChildElement(
CMIElement: string,
value: any,
foundFirstIndex: boolean,
Expand Down Expand Up @@ -64,7 +64,7 @@ class AICCImpl extends Scorm12Impl {
*
* @param {AICCImpl} newAPI
*/
replaceWithAnotherScormAPI(newAPI: AICCImpl) {
override replaceWithAnotherScormAPI(newAPI: AICCImpl) {
// Data Model
this.cmi = newAPI.cmi;
this.nav = newAPI.nav;
Expand Down
6 changes: 3 additions & 3 deletions src/Scorm12API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class Scorm12Impl extends BaseAPI {
* @param {*} value
* @return {string}
*/
setCMIValue(CMIElement: string, value: any): string {
override setCMIValue(CMIElement: string, value: any): string {
return this._commonSetCMIValue("LMSSetValue", false, CMIElement, value);
}

Expand All @@ -213,7 +213,7 @@ class Scorm12Impl extends BaseAPI {
* @param {string} CMIElement
* @return {*}
*/
getCMIValue(CMIElement: string): any {
override getCMIValue(CMIElement: string): any {
return this._commonGetCMIValue("getCMIValue", false, CMIElement);
}

Expand Down Expand Up @@ -272,7 +272,7 @@ class Scorm12Impl extends BaseAPI {
* @param {boolean} detail
* @return {string}
*/
getLmsErrorMessageDetails(
override getLmsErrorMessageDetails(
errorNumber: number | string,
detail: boolean,
): string {
Expand Down
6 changes: 3 additions & 3 deletions src/Scorm2004API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Scorm2004Impl extends BaseAPI {
* @param {any} value
* @return {string}
*/
setCMIValue(CMIElement: string, value: any): string {
override setCMIValue(CMIElement: string, value: any): string {
return this._commonSetCMIValue("SetValue", true, CMIElement, value);
}

Expand Down Expand Up @@ -411,7 +411,7 @@ class Scorm2004Impl extends BaseAPI {
* @param {string} CMIElement
* @return {*}
*/
getCMIValue(CMIElement: string): any {
override getCMIValue(CMIElement: string): any {
return this._commonGetCMIValue("GetValue", true, CMIElement);
}

Expand All @@ -422,7 +422,7 @@ class Scorm2004Impl extends BaseAPI {
* @param {boolean} detail
* @return {string}
*/
getLmsErrorMessageDetails(
override getLmsErrorMessageDetails(
errorNumber: string | number,
detail: boolean,
): string {
Expand Down
14 changes: 7 additions & 7 deletions src/cmi/aicc/attempts.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {BaseCMI} from "../common/base_cmi";
import {CMIScore} from "../common/score";
import { BaseCMI } from "../common/base_cmi";
import { CMIScore } from "../common/score";
import APIConstants from "../../constants/api_constants";
import Regex from "../../constants/regex";
import ErrorCodes from "../../constants/error_codes";
import {AICCValidationError} from "../../exceptions";
import {checkAICCValidFormat} from "./validation";
import {CMIArray} from "../common/array";
import { AICCValidationError } from "../../exceptions";
import { checkAICCValidFormat } from "./validation";
import { CMIArray } from "../common/array";

/**
* Class for cmi.student_data.attempt_records array
Expand Down Expand Up @@ -45,7 +45,7 @@ export class CMIAttemptRecordsObject extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.score?.initialize();
}
Expand Down Expand Up @@ -91,4 +91,4 @@ export class CMIAttemptRecordsObject extends BaseCMI {
delete this.jsonString;
return result;
}
}
}
8 changes: 4 additions & 4 deletions src/cmi/aicc/cmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ export class CMI extends Scorm12CMI.CMI {
this.paths = new CMIPaths();
}

public student_data: AICCCMIStudentData;
public student_preference: AICCStudentPreferences;
public override student_data: AICCCMIStudentData;
public override student_preference: AICCStudentPreferences;
public student_demographics: CMIStudentDemographics;
public evaluation: CMIEvaluation;
public paths: CMIPaths;

/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.student_preference?.initialize();
this.student_data?.initialize();
Expand All @@ -65,7 +65,7 @@ export class CMI extends Scorm12CMI.CMI {
* }
* }
*/
toJSON(): {
override toJSON(): {
suspend_data: string;
launch_data: string;
comments: string;
Expand Down
2 changes: 1 addition & 1 deletion src/cmi/aicc/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class CMICore extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.score?.initialize();
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmi/aicc/evaluation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CMIEvaluation extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.comments?.initialize();
}
Expand Down
4 changes: 2 additions & 2 deletions src/cmi/aicc/student_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class AICCCMIStudentData extends CMIStudentData {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.tries?.initialize();
this.attempt_records?.initialize();
Expand Down Expand Up @@ -65,7 +65,7 @@ export class AICCCMIStudentData extends CMIStudentData {
* }
* }
*/
toJSON(): {
override toJSON(): {
mastery_score: string;
max_time_allowed: string;
time_limit_action: string;
Expand Down
4 changes: 2 additions & 2 deletions src/cmi/aicc/student_preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class AICCStudentPreferences extends CMIStudentPreference {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.windows?.initialize();
}
Expand Down Expand Up @@ -145,7 +145,7 @@ export class AICCStudentPreferences extends CMIStudentPreference {
* }
* }
*/
toJSON(): {
override toJSON(): {
audio: string;
language: string;
lesson_type: string;
Expand Down
14 changes: 7 additions & 7 deletions src/cmi/aicc/tries.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {CMIArray} from "../common/array";
import { CMIArray } from "../common/array";
import APIConstants from "../../constants/api_constants";
import {BaseCMI} from "../common/base_cmi";
import {CMIScore} from "../common/score";
import { BaseCMI } from "../common/base_cmi";
import { CMIScore } from "../common/score";
import Regex from "../../constants/regex";
import ErrorCodes from "../../constants/error_codes";
import {AICCValidationError} from "../../exceptions";
import {checkAICCValidFormat} from "./validation";
import { AICCValidationError } from "../../exceptions";
import { checkAICCValidFormat } from "./validation";

/**
* Class representing the AICC cmi.student_data.tries object
Expand Down Expand Up @@ -45,7 +45,7 @@ export class CMITriesObject extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.score?.initialize();
}
Expand Down Expand Up @@ -113,4 +113,4 @@ export class CMITriesObject extends BaseCMI {
delete this.jsonString;
return result;
}
}
}
2 changes: 1 addition & 1 deletion src/cmi/scorm12/cmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class CMI extends BaseRootCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.core?.initialize();
this.objectives?.initialize();
Expand Down
2 changes: 1 addition & 1 deletion src/cmi/scorm12/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class CMIInteractionsObject extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.objectives?.initialize();
this.correct_responses?.initialize();
Expand Down
4 changes: 2 additions & 2 deletions src/cmi/scorm2004/adl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ADL extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.nav?.initialize();
}
Expand Down Expand Up @@ -67,7 +67,7 @@ export class ADLNav extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.request_valid?.initialize();
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmi/scorm2004/cmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class CMI extends BaseRootCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.learner_preference?.initialize();
this.score?.initialize();
Expand Down
2 changes: 1 addition & 1 deletion src/cmi/scorm2004/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class CMIInteractionsObject extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.objectives?.initialize();
this.correct_responses?.initialize();
Expand Down
2 changes: 1 addition & 1 deletion src/cmi/scorm2004/objectives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class CMIObjectivesObject extends BaseCMI {
/**
* Called when the API has been initialized after the CMI has been created
*/
initialize() {
override initialize() {
super.initialize();
this.score?.initialize();
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmi/scorm2004/score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Scorm2004CMIScore extends CMIScore {
* }
* }
*/
toJSON(): {
override toJSON(): {
scaled: string;
raw: string;
min: string;
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"sourceMap": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"declaration": false,
"module": "es2015",
"moduleResolution": "Node",
Expand Down

0 comments on commit 0a5fa75

Please sign in to comment.