Skip to content

Commit

Permalink
chore(example): update aliases API
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Dec 20, 2024
1 parent ffea220 commit 4ba5245
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions examples/basic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ async function main() {

await setTimeout(1000);

p.setGlobalAliases([
['w', 'up'],
['s', 'down'],
['a', 'left'],
['d', 'right'],
['escape', 'cancel'],
]);
p.updateSettings({
aliases: {
w: 'up',
s: 'down',
a: 'left',
d: 'right'
}
});

p.intro(`${color.bgCyan(color.black(' create-app '))}`);

Expand Down

0 comments on commit 4ba5245

Please sign in to comment.