-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathindex.d.ts
70 lines (60 loc) · 2.07 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { Scorm12Impl } from "./src/Scorm12API";
import { CMI as Scorm12CMI } from "./src/cmi/scorm12/cmi";
import { NAV as Scorm12NAV } from "./src/cmi/scorm12/nav";
import { CMI as Scorm2004CMI } from "./src/cmi/scorm2004/cmi";
import { ADL as Scorm2004ADL } from "./src/cmi/scorm2004/adl";
import { Settings } from "./src/types/api_types";
import { Scorm2004Impl } from "./src/Scorm2004API";
import { AICCImpl } from "./src/AICC";
declare class Scorm12API extends Scorm12Impl {
constructor(settings?: Settings);
cmi: Scorm12CMI;
nav: Scorm12NAV;
LMSInitialize: () => string;
LMSFinish: () => string;
LMSGetValue: (CMIElement: string) => string;
LMSSetValue: (CMIElement: string, value: any) => string;
LMSCommit: () => string;
LMSGetLastError: () => string;
LMSGetErrorString: (CMIErrorCode: string) => string;
LMSGetDiagnostic: (CMIErrorCode: string) => string;
/**
* Called when the API needs to be reset
*/
reset(settings?: Settings): void;
}
declare class Scorm2004API extends Scorm2004Impl {
constructor(settings?: Settings);
cmi: Scorm2004CMI;
adl: Scorm2004ADL;
Initialize: () => string;
Terminate: () => string;
GetValue: (CMIElement: string) => string;
SetValue: (CMIElement: string, value: any) => string;
Commit: () => string;
GetLastError: () => string;
GetErrorString: (CMIErrorCode: string) => string;
GetDiagnostic: (CMIErrorCode: string) => string;
/**
* Called when the API needs to be reset
*/
reset(settings?: Settings): void;
}
declare class AICC extends AICCImpl {
constructor(settings?: Settings);
cmi: Scorm12CMI;
nav: Scorm12NAV;
LMSInitialize: () => string;
LMSFinish: () => string;
LMSGetValue: (CMIElement: string) => string;
LMSSetValue: (CMIElement: string, value: any) => string;
LMSCommit: () => string;
LMSGetLastError: () => string;
LMSGetErrorString: (CMIErrorCode: string) => string;
LMSGetDiagnostic: (CMIErrorCode: string) => string;
/**
* Called when the API needs to be reset
*/
reset(settings?: Settings): void;
}
export { Scorm12API, Scorm2004API, AICC, Settings };