From 137317878e88cf5d934f0010f4dd1cf68d8ae8e7 Mon Sep 17 00:00:00 2001 From: jade <101148768+jadeddelta@users.noreply.github.com> Date: Thu, 21 Nov 2024 02:47:43 -0500 Subject: [PATCH] add missing data field to audio-button-response --- .changeset/red-news-pull.md | 5 +++++ packages/plugin-audio-button-response/src/index.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/red-news-pull.md diff --git a/.changeset/red-news-pull.md b/.changeset/red-news-pull.md new file mode 100644 index 00000000..328a9018 --- /dev/null +++ b/.changeset/red-news-pull.md @@ -0,0 +1,5 @@ +--- +"@jspsych/plugin-audio-button-response": patch +--- + +annotate missing stimulus data field diff --git a/packages/plugin-audio-button-response/src/index.ts b/packages/plugin-audio-button-response/src/index.ts index 96ad72ec..c510f915 100644 --- a/packages/plugin-audio-button-response/src/index.ts +++ b/packages/plugin-audio-button-response/src/index.ts @@ -100,6 +100,10 @@ const info = { }, }, data: { + /** The path of the audio file that was played. */ + stimulus: { + type: ParameterType.STRING, + }, /** The response time in milliseconds for the participant to make a response. The time is measured from * when the stimulus first began playing until the participant's response.*/ rt: {