Skip to content

Commit

Permalink
fix ts to be before js; let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Aug 8, 2024
1 parent 6e10d74 commit 4dacb61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions templates/cli/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ async function runPrompts() {
const language = await select({
message: "What language do you want to use?",
choices: [
{
name: "JavaScript",
value: "js",
},
{
name: "TypeScript",
value: "ts",
},
{
name: "JavaScript",
value: "js",
},
],
loop: false,
});
Expand Down
4 changes: 2 additions & 2 deletions templates/extension-template-js/examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
</head>
<body>
<script>
let jsPsych = initJsPsych({
const jsPsych = initJsPsych({
extensions: [{ type: {globalName} }],
});

let trial = {
const trial = {
type: jsPsychHtmlKeyboardResponse,
stimulus: "Hello world",
extensions: [{ type: {globalName} },
Expand Down
4 changes: 2 additions & 2 deletions templates/extension-template-ts/examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
</head>
<body>
<script>
let jsPsych = initJsPsych({
const jsPsych = initJsPsych({
extensions: [{ type: {globalName} }],
});

let trial = {
const trial = {
type: jsPsychHtmlKeyboardResponse,
stimulus: "Hello world",
extensions: [{ type: {globalName} },
Expand Down

0 comments on commit 4dacb61

Please sign in to comment.