You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by SHogenboom May 22, 2023
Is there an overview of the available jspsych.ParameterTypes? Ideally accompanied by a description of best practices in terms of when to use which one? Have been searching but was unable to find it.
It would be pretty useful as I’m trying to develop a plugin from scratch (although according to the provided template).
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I started looking into this starting from the overview in the modules/plugins.ts file. For best practices I looked into how these parameter types are used in the different plugins. But here it appears to me that the parameter types do not always appear to cover the actual type of the variable that would be assigned. For example, in the preload plugin images are defined as ParameterType.STRING, but the description says that this property needs an array (the default value is an array as well).
The ParameterTypeMap on the other hand does make a distinction between e.g. ParameterType.KEY and ParameterType.KEYS, which are mapped on string and string[] respectively.
Discussed in #3044
Originally posted by SHogenboom May 22, 2023
Is there an overview of the available
jspsych.ParameterType
s? Ideally accompanied by a description of best practices in terms of when to use which one? Have been searching but was unable to find it.It would be pretty useful as I’m trying to develop a plugin from scratch (although according to the provided template).
Thanks in advance!
The text was updated successfully, but these errors were encountered: