mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00

Instead of a global `jsPsych` object, there is a `JsPsych` class now which can be instantiated with the parameters that were previously accepted by `jsPsych.init`. Upon instantiation, the `JsPsych` class also instantiates classes for stateful modules (`jsPsych.data` and `jsPsych.pluginAPI`) and passes relevant `JsPsych` instance information to them. Plugins are expected to be classes now that are instantiated for each trial and receive the `JsPsych` instance as their only constructor argument.
7 lines
162 B
JSON
7 lines
162 B
JSON
{
|
|
"extends": "@jspsych/config/tsconfig.json",
|
|
"compilerOptions": {
|
|
"resolveJsonModule": false // using https://stackoverflow.com/a/61426303 instead
|
|
}
|
|
}
|